Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layer zoom event #98

Open
kueda opened this issue Sep 24, 2011 · 3 comments
Open

layer zoom event #98

kueda opened this issue Sep 24, 2011 · 3 comments

Comments

@kueda
Copy link

kueda commented Sep 24, 2011

It would be very useful to be able to observe zoom level changes on layers. I'm trying to keep a layer of points scaled by values in meters, so I need to recalculate the radii whenever the zoom level changes. I can work around this by observing the 'move' event on the map object and keeping track of the last zoom level, but that seems clunky. Am I missing a better way to do this? If not, how about adding this event?

@stefl
Copy link

stefl commented Dec 15, 2011

I'd also like to be able to do this - I'm aggregating data into a heatmap geojson overlay, and knowing the level of zoom is useful for efficiency.

@RyanEwen
Copy link

I am also observing the 'move' event and checking for the zoom level as this happens, but I am happy with that. It doesn't seem too clunky, but a specific 'zoom' event wouldn't hurt, either.

@hamroune
Copy link

hi all, is there any workaround to check the zoom events?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants