From 8d13a793403020c9c7421da46ecd9c6eee049365 Mon Sep 17 00:00:00 2001 From: euzuro Date: Mon, 29 May 2006 09:43:31 +0000 Subject: [PATCH] reset default Icon offset to 0,0 git-svn-id: http://svn.openlayers.org/trunk/openlayers@439 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Icon.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/OpenLayers/Icon.js b/lib/OpenLayers/Icon.js index b8c4bf605a..88d724d58a 100644 --- a/lib/OpenLayers/Icon.js +++ b/lib/OpenLayers/Icon.js @@ -25,8 +25,8 @@ OpenLayers.Icon.prototype = { initialize: function(url, size, offset) { this.size = size; this.url = url; - this.offset = (offset) ? offset : - new OpenLayers.Pixel(-(size.w/2), -size.h); + this.offset = (offset) ? offset + : new OpenLayers.Pixel(0,0); }, /** @@ -39,4 +39,4 @@ OpenLayers.Icon.prototype = { /** @final @type String */ CLASS_NAME: "OpenLayers.Icon" -} +}; \ No newline at end of file