reset default Icon offset to 0,0

git-svn-id: http://svn.openlayers.org/trunk/openlayers@439 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-29 09:43:31 +00:00
parent 14ddfc21f3
commit 8d13a79340
+3 -3
View File
@@ -25,8 +25,8 @@ OpenLayers.Icon.prototype = {
initialize: function(url, size, offset) { initialize: function(url, size, offset) {
this.size = size; this.size = size;
this.url = url; this.url = url;
this.offset = (offset) ? offset : this.offset = (offset) ? offset
new OpenLayers.Pixel(-(size.w/2), -size.h); : new OpenLayers.Pixel(0,0);
}, },
/** /**
@@ -39,4 +39,4 @@ OpenLayers.Icon.prototype = {
/** @final @type String */ /** @final @type String */
CLASS_NAME: "OpenLayers.Icon" CLASS_NAME: "OpenLayers.Icon"
} };