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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user