Why not ask your question on the new OpenStreetMap Community Forum?

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 ♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×105
×99
×57

question asked: 23 Sep '12, 22:07

question was seen: 2,393 times

last updated: 23 Sep '12, 23:14

powered by OSQA