[OpenLayers-Users] Re: onZoomEnd acts before zoom actually ends

Andreas Hocevar ahocevar at opengeo.org
Wed Feb 8 08:48:15 EST 2012


Hi,

are you talking about the animated zoom of a Google layer? This is not
controlled by OpenLayers, so you won't be able to catch it with an
OpenLayers event. You would have to do this using the GMaps API.

Andreas.

On Wed, Feb 8, 2012 at 9:44 AM, takakot <takako.tucker at bbc.co.uk> wrote:
> I had a look around the list and changed my code to:
>
>    map.events.register("zoomend", map, function() {
>                                alert('zoom ended');
>    });
>
> or
>
>    map.events.register("moveend", map, function() {
>                                alert('move ended');
>    });
>
> But the issue is the event gets triggered before map layer movement ends. So
> it shows up an alert before whilst the map layer still zooming in and out.
> I'd like the event to get fired only when all is completed.
>
> Any suggestions?
>
> Thanks
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/onZoomEnd-acts-before-zoom-actually-ends-tp4372692p4375277.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list