Hi Lists,
is it just a bug, or it is supposed to rise MoveEnd event once when panning
but twice when zooming?
/_map.events.on({
moveend: function ()
{
var bbox = _map.getExtent().toArray();
var denominator = _map.getScale();
alert("CALL0"); // Alerts twice whne zoomed
if (originBBox[0] > bbox[0] || originBBox[1] > bbox[1] ||
originBBox[2] < bbox[2] || originBBox[3] < bbox[3] || originBBox[4] !==
denominator)
{
originBBox = newOriginBox(bbox, denominator);
loadGeometry(originBBox);
}
}
});/
Thanks,
Tom
--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Map-moveend-event-fires-twice-if-zoomed-tp5019378.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users