View Single Post
Old 01-01-2013, 12:23 AM   PM User | #17
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,560
Thanks: 62
Thanked 4,056 Times in 4,025 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Sorry about some of the indenting. My editor uses a 4-character tab and of course this forum uses an 8-character tab.

Also...I didn't change the mousewheel code yet. I would have to change the mapbox.js code to do that. Or, better, throw out its code and use my own.

One glitch I noticed: If you scroll to, say, the bottom right corner of the map at zoom level 100 and then change to zoom level 75 or 50, the map disappears. But a single mouse click anywhere in the map area restores it.

So I would just need to find the code to do the equivalent of that mouse click after any resize.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.

Last edited by Old Pedant; 01-01-2013 at 12:27 AM..
Old Pedant is online now   Reply With Quote