This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

access the zoom javascript

0

Hello OSM community.

I am working on an experimental project for displaying data visualizations on the web. I am wondering where who I can access the zoom events in the javascript, depending on the zoom level I want to trigger different events on the webpage. can anyone offer a suggestion or help me find relavent documentation.?

Thanks

asked 23 Sep '12, 22:07

fire_mt's gravatar image

fire_mt
11112
accept rate: 0%

2

You say "the Javascript", but what JS library are you using? If you've not already seen it, have a look at the switch2osm site - that includes examples for Leaflet and Openlayers, and links to the documentation for each (such as here) and other examples. As this question at Leaflet's Google Group makes clear, if it doesn't do what you want you can always change it.

(23 Sep '12, 23:14) SomeoneElse ♦

Source code available on GitHub .