Add class to handle NearMap's maximum zoom level, based on JMapViewer's AbstractOsmTileSource class for NearMap in JOSM
|Reported by:||morb_au||Owned by:||framm|
|Version:||latest||Keywords:||slippymap nearmap zoom mapviewer abstractosmtilesource|
Description (last modified by Don-vip)
This relates to http://trac.openstreetmap.org/ticket/2429 and the files in http://svn.openstreetmap.org/applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer ...
The NearMap imagery can go to zoom level 24, but the JMapViewer in JOSM only goes to layer 18 by default.
There are 2 solutions known - one (by me, morb_au) changes the default abstractosmtilesource to maximum zoom level 24, but this seems to break non-nearmap sources if they aren't explicitly set to maximum zoom 18 (my attached file does this for mapnik but I don't know if there are other layer types that need the fix).
The other (by Michael, http://lists.openstreetmap.org/pipermail/talk-au/2009-November/003990.html) sets up a new class based on abstractosmtilesource but this has the disadvantage of needing to be further patched if you want to choose a particular nearmap imagery date.
So my long term preference is to change the default maxzoom to 24, and allow users to choose the imagery date through JOSM preferences (e.g. through the slippymap.custom_tile_source_1 settings)