Changeset 19521 in osm for applications/editors/josm
- Timestamp:
- 2010-01-14T22:04:42+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/slippymap
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/slippymap/build.xml
r19477 r19521 27 27 <project name="slippymap" default="dist" basedir="."> 28 28 29 <property name="commit.message" value=" Changed the constructor signature of the plugin main class" />29 <property name="commit.message" value="Added haiti imagery tile source" /> 30 30 <property name="plugin.main.version" value="2830" /> 31 31 … … 183 183 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 184 184 </target> 185 186 <target name="dev-install"> 187 <copy file="${plugin.jar}" todir="c:/data/projekte/osm/josm-dev/plugins" /> 188 </target> 185 189 </project> -
applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapPreferences.java
r18805 r19521 278 278 } 279 279 } 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 } 280 299 281 300 public static class Custom extends OsmTileSource.AbstractOsmTileSource { … … 337 356 sources.add(new FreeMapySk()); 338 357 sources.add(new NearMap()); 358 sources.add(new HaitiImagery()); 339 359 sources.addAll(getCustomSources()); 340 360 // Probably need to either add these or let users add them somehow
Note:
See TracChangeset
for help on using the changeset viewer.