Ignore:
Timestamp:
2009-11-22T19:12:22+01:00 (15 years ago)
Author:
dhansen
Message:

Patch to support NearMap

http://josm.openstreetmap.de/attachment/ticket/3984

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapPreferences.java

    r18355 r18741  
    252252    }
    253253
     254    public static class NearMap extends OsmTileSource.AbstractOsmTileSource {
     255        public NearMap() {
     256            super("NearMap Australia", "http://www.nearmap.com/maps/hl=en&nml=Vert&");
     257        }
     258
     259        public int getMaxZoom() {
     260            return 21;
     261        }
     262
     263        public String getTilePath(int zoom, int tilex, int tiley) {
     264            return "z=" + zoom + "&x=" + tilex + "&y=" + tiley;
     265        }
     266
     267        public TileUpdate getTileUpdate() {
     268            return TileUpdate.IfNoneMatch;
     269        }
     270    }
     271
    254272    public static class Custom extends OsmTileSource.AbstractOsmTileSource {
    255273        public Custom(String name, String url) {
     
    309327        sources.add(new FreeMapySkPokus());
    310328        sources.add(new FreeMapySk());
     329        sources.add(new NearMap());
    311330        sources.addAll(getCustomSources());
    312331        // Probably need to either add these or let users add them somehow
Note: See TracChangeset for help on using the changeset viewer.