Ticket #3984: slippymap.diff
| File slippymap.diff, 1.4 KB (added by , 16 years ago) |
|---|
-
src/org/openstreetmap/josm/plugins/slippymap/SlippyMapPreferences.java
251 251 } 252 252 } 253 253 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 254 272 public static class Custom extends OsmTileSource.AbstractOsmTileSource { 255 273 public Custom(String name, String url) { 256 274 super(name, url); … … 308 326 sources.add(new Coastline()); 309 327 sources.add(new FreeMapySkPokus()); 310 328 sources.add(new FreeMapySk()); 329 sources.add(new NearMap()); 311 330 sources.addAll(getCustomSources()); 312 331 // Probably need to either add these or let users add them somehow 313 332 // "http://hypercube.telascience.org/tiles/1.0.0/coastline", // coastline
