wiseman / mavelous

multi-platform ground station for drones that speak the MAVLink protocol
MIT License
167 stars 85 forks source link

Zoom in further than the tiles permit to view smaller areas #26

Open skelly opened 11 years ago

skelly commented 11 years ago

It would be nice to be able to zoom in further than the max resolution of the map tiles so you can focus on a smaller area. As it is now, on my iPad, at max zoom I can see about two blocks worth of area. A bit more zoom would allow finer placement of waypoints.

wiseman commented 11 years ago

I pushed a change that increases the max zoom, from 18 to 21. Bing is the only provider we use that has imagery for that zoom level, though, and if you go beyond zoom level 18 with the other providers you get a blank map. It also doesn't look like leaflet supports any way to show scaled tiles from a lower zoom level, but I'll have to investigate more.

wiseman commented 11 years ago

Found this, which I'll investigate more thoroughly when I have a chance: https://github.com/kochizufan/ZoomTMSLayer "Zooming map tiles bigger than maxZoom setting, in Google Maps API, Leaflet and OpenLayers."