Fix to Layer.Text to allow iconOffset of 0,0 from Edgemaster, r=me (Closes

#1467)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6946 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-04-16 01:30:40 +00:00
parent 7598e0de43
commit 029e76d965

View File

@@ -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);