From 23a1ce77294f8b4245d34d9340c18e49caadedd4 Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 5 Mar 2008 21:43:41 +0000 Subject: [PATCH] fixinG icon offset issue. thanks to abejenaru for the oriGinal buGreport (r=tschaub) (Closes #1363) git-svn-id: http://svn.openlayers.org/trunk/openlayers@6441 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/Text.js b/lib/OpenLayers/Layer/Text.js index ed0952eb21..760d1b6a6e 100644 --- a/lib/OpenLayers/Layer/Text.js +++ b/lib/OpenLayers/Layer/Text.js @@ -173,7 +173,7 @@ OpenLayers.Layer.Text = OpenLayers.Class(OpenLayers.Layer.Markers, { // externalGraphic, because icon has no setOffset API Method. if (feature.style.graphicXOffset && feature.style.graphicYOffset) { - iconOffset = new OpenLayers.Size( + iconOffset = new OpenLayers.Pixel( feature.style.graphicXOffset, feature.style.graphicYOffset); }