forked from stamen/modestmaps-js
-
Notifications
You must be signed in to change notification settings - Fork 72
Upgrading to 1.0.0
tmcw edited this page Mar 22, 2012
·
6 revisions
In 1.0.0, map navigation is decoupled from the tile availability code - you can set different limits for tiles to render and tiles to see.
map.setSize() turns map.autoSize = false in 1.0.0. This prevents further auto-sizing of the map based on page or browser size changes.
See Layers and Providers for the full new API.
The biggest change in Modest Maps 1.0.0 is that it supports layers where before we recommended people to stack maps on top of each other. This means that the code
map.setProvider(provider)is now more like
map.setLayerAt(0, layer)