Commit eb4aac7a authored by Jonny Bradley's avatar Jonny Bradley

[FIX] maps: Firefox doesn't have offsetX or Y, so use existing...

[FIX] maps: Firefox doesn't have offsetX or Y, so use existing OpenLayers.Pixel from the event (that i completely missed before)
Fixes tooltips on markers for Firefox.
parent 4eed9447
......@@ -500,11 +500,8 @@
}
var lonlat = map.getLonLatFromPixel(
new OpenLayers.Pixel(
// get mouse position
this.handlers.feature.evt.offsetX,
this.handlers.feature.evt.offsetY
)
// get mouse position
this.handlers.feature.evt.xy
);
var popup = new OpenLayers.Popup.Anchored(
'myPopup',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment