Ticket #3984: slippymap.diff

File slippymap.diff, 1.4 KB (added by anonymous, 16 years ago)

Patch for slippymap plugin

  • src/org/openstreetmap/josm/plugins/slippymap/SlippyMapPreferences.java

     
    251251        }
    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) {
    256274            super(name, url);
     
    308326        sources.add(new Coastline());
    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
    313332        //      "http://hypercube.telascience.org/tiles/1.0.0/coastline", // coastline