Commit fixed version of r2962. (Hooray for tests.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2963 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -40,7 +40,7 @@ OpenLayers.Icon.prototype = {
|
||||
initialize: function(url, size, offset, calculateOffset) {
|
||||
this.url = url;
|
||||
this.size = (size) ? size : new OpenLayers.Size(20,20);
|
||||
this.offset = offset ? offset : new OpenLayers.Pixel(-(size.w/2), -(size.h/2));
|
||||
this.offset = offset ? offset : new OpenLayers.Pixel(-(this.size.w/2), -(this.size.h/2));
|
||||
this.calculateOffset = calculateOffset;
|
||||
|
||||
var id = OpenLayers.Util.createUniqueID("OL_Icon_");
|
||||
|
||||
Reference in New Issue
Block a user