Changeset 19521 in osm for applications/editors/josm


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

'Added haiti imagery tile source'

Location:
applications/editors/josm/plugins/slippymap
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/slippymap/build.xml

    r19477 r19521  
    2727<project name="slippymap" default="dist" basedir=".">
    2828
    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" />
    3030        <property name="plugin.main.version" value="2830" />
    3131
     
    183183        <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    184184        </target>
     185       
     186        <target name="dev-install">
     187                <copy file="${plugin.jar}" todir="c:/data/projekte/osm/josm-dev/plugins" />
     188        </target>
    185189</project>
  • 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.