diff --git a/lib/OpenLayers/Layer/Text.js b/lib/OpenLayers/Layer/Text.js index dd1b7479b6..23aab6bc26 100644 --- a/lib/OpenLayers/Layer/Text.js +++ b/lib/OpenLayers/Layer/Text.js @@ -171,8 +171,8 @@ OpenLayers.Layer.Text = OpenLayers.Class(OpenLayers.Layer.Markers, { // FIXME: At the moment, we only use this if we have an // externalGraphic, because icon has no setOffset API Method. - if (feature.style.graphicXOffset - && feature.style.graphicYOffset) { + if (feature.style.graphicXOffset !== null + && feature.style.graphicYOffset !== null) { iconOffset = new OpenLayers.Pixel( feature.style.graphicXOffset, feature.style.graphicYOffset);