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
This commit is contained in:
@@ -173,7 +173,7 @@ OpenLayers.Layer.Text = OpenLayers.Class(OpenLayers.Layer.Markers, {
|
|||||||
// externalGraphic, because icon has no setOffset API Method.
|
// externalGraphic, because icon has no setOffset API Method.
|
||||||
if (feature.style.graphicXOffset
|
if (feature.style.graphicXOffset
|
||||||
&& feature.style.graphicYOffset) {
|
&& feature.style.graphicYOffset) {
|
||||||
iconOffset = new OpenLayers.Size(
|
iconOffset = new OpenLayers.Pixel(
|
||||||
feature.style.graphicXOffset,
|
feature.style.graphicXOffset,
|
||||||
feature.style.graphicYOffset);
|
feature.style.graphicYOffset);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user