Changeset 5046 in josm for trunk/src


Ignore:
Timestamp:
2012-03-05T22:41:23+01:00 (13 years ago)
Author:
Don-vip
Message:

Slippy Map Chooser: Add MapQuest-OSM and MapQuest Open Aerial, fix existing tile sources URLs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java

    r5043 r5046  
    3333import org.openstreetmap.gui.jmapviewer.interfaces.TileLoader;
    3434import org.openstreetmap.gui.jmapviewer.interfaces.TileSource;
     35import org.openstreetmap.gui.jmapviewer.tilesources.MapQuestOpenAerialTileSource;
     36import org.openstreetmap.gui.jmapviewer.tilesources.MapQuestOsmTileSource;
    3537import org.openstreetmap.gui.jmapviewer.tilesources.OsmTileSource;
    3638import org.openstreetmap.josm.Main;
     
    104106        static {
    105107            // Urls that already exist in the slippymap chooser and shouldn't be copied from TMS layer list
    106             existingSlippyMapUrls.add("http://tile.openstreetmap.org/");
    107             existingSlippyMapUrls.add("http://tah.openstreetmap.org/Tiles/tile/");
    108             existingSlippyMapUrls.add("http://tile.opencyclemap.org/cycle/");
     108            existingSlippyMapUrls.add("http://tile.openstreetmap.org/{zoom}/{x}/{y}.png");      // Mapnik
     109            existingSlippyMapUrls.add("http://tile.opencyclemap.org/cycle/{zoom}/{x}/{y}.png"); // Cyclemap
     110            existingSlippyMapUrls.add("http://otile{switch:1,2,3,4}.mqcdn.com/tiles/1.0.0/osm/{zoom}/{x}/{y}.png"); // MapQuest-OSM
     111            existingSlippyMapUrls.add("http://oatile{switch:1,2,3,4}.mqcdn.com/tiles/1.0.0/sat/{zoom}/{x}/{y}.png"); // MapQuest Open Aerial
    109112        }
    110113
     
    155158                return Arrays.<TileSource>asList(
    156159                        new RenamedSourceDecorator(new OsmTileSource.Mapnik(), "Mapnik"),
    157                         new RenamedSourceDecorator(new OsmTileSource.CycleMap(), "Cyclemap")
     160                        new RenamedSourceDecorator(new OsmTileSource.CycleMap(), "Cyclemap"),
     161                        new RenamedSourceDecorator(new MapQuestOsmTileSource(), "MapQuest-OSM"),
     162                        new RenamedSourceDecorator(new MapQuestOpenAerialTileSource(), "MapQuest Open Aerial")
    158163                        );
    159164            }
Note: See TracChangeset for help on using the changeset viewer.