001// License: GPL. For details, see Readme.txt file.
002package org.openstreetmap.gui.jmapviewer.tilesources;
003
004import org.openstreetmap.gui.jmapviewer.interfaces.ICoordinate;
005
006public class MapQuestOsmTileSource extends AbstractMapQuestTileSource {
007
008    private static final String PATTERN = "http://otile%d.mqcdn.com/tiles/1.0.0/osm";
009
010    public MapQuestOsmTileSource() {
011        super("MapQuest-OSM", PATTERN, "mapquest-osm");
012    }
013    
014    @Override
015    public String getAttributionText(int zoom, ICoordinate topLeft,
016            ICoordinate botRight) {
017        return super.getAttributionText(zoom, topLeft, botRight)+" - "+MAPQUEST_ATTRIBUTION;
018    }
019}