Ignore:
Timestamp:
2010-01-14T22:04:42+01:00 (15 years ago)
Author:
guggis
Message:

'Added haiti imagery tile source'

File:
1 edited

Legend:

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

    r18805 r19521  
    278278        }
    279279    }
     280   
     281
     282    public static class HaitiImagery extends OsmTileSource.AbstractOsmTileSource {
     283        public HaitiImagery() {
     284            super("HaitiImagery", "http://gravitystorm.dev.openstreetmap.org/imagery/haiti");
     285        }
     286
     287        public int getMaxZoom() {
     288            return 21;
     289        }
     290
     291        public String getTilePath(int zoom, int tilex, int tiley) {
     292                return "/" + zoom + "/" + tilex + "/" + tiley + ".png";
     293        }
     294
     295        public TileUpdate getTileUpdate() {
     296            return TileUpdate.IfNoneMatch;
     297        }
     298    }
    280299
    281300    public static class Custom extends OsmTileSource.AbstractOsmTileSource {
     
    337356        sources.add(new FreeMapySk());
    338357        sources.add(new NearMap());
     358        sources.add(new HaitiImagery());
    339359        sources.addAll(getCustomSources());
    340360        // Probably need to either add these or let users add them somehow
Note: See TracChangeset for help on using the changeset viewer.