Closed jamierytlewski closed 1 month ago
Hi Jamie,
Zoom before you pan:
map.setZoom(10).setCenter({ lat: 51.55, lon: 0.1 });
As far as your wiki example; you're concatenating different examples, right? I don't see that code anywhere on the wiki as one segment.
I made a change to the wiki example...I probably should've left it first. Of course, the website where you get the info from, has an older version (an alpha version) and the code if I was to copy/paste does not work.
If I try and run the code:
It no longer works in the newest beta. This works:
Even the wiki on page https://github.com/stamen/modestmaps-js/wiki shows code like:
Which the middle line is duplicating what the 1st and 3rd lines do, but if you take out the 2nd line, the chaining doesn't work. It ends up putting the zoom somewhere that is not centered properly;