Changeset 29845 in osm for applications/viewer/jmapviewer
- Timestamp:
- 2013-08-19T11:01:29+02:00 (11 years ago)
- Location:
- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/AbstractOsmTileSource.java
r26807 r29845 5 5 6 6 import java.awt.Image; 7 import java.io.IOException;8 9 import javax.swing.ImageIcon;10 7 11 8 import org.openstreetmap.gui.jmapviewer.Coordinate; 12 import org.openstreetmap.gui.jmapviewer.interfaces.TileSource;13 9 14 10 public abstract class AbstractOsmTileSource extends AbstractTMSTileSource { 11 12 /** 13 * The OSM attribution. Must be always in line with <a href="http://www.openstreetmap.org/copyright/en">http://www.openstreetmap.org/copyright/en</a> 14 */ 15 public static final String DEFAULT_OSM_ATTRIBUTION = "\u00a9 OpenStreetMap contributors"; 16 15 17 public AbstractOsmTileSource(String name, String base_url) { 16 18 super(name, base_url); … … 28 30 @Override 29 31 public String getAttributionText(int zoom, Coordinate topLeft, Coordinate botRight) { 30 return "\u00a9 OpenStreetMap contributors, CC-BY-SA ";32 return DEFAULT_OSM_ATTRIBUTION; 31 33 } 32 34 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/MapQuestOsmTileSource.java
r27992 r29845 14 14 public String getAttributionText(int zoom, Coordinate topLeft, 15 15 Coordinate botRight) { 16 return super.getAttributionText(zoom, topLeft, botRight)+" - "+MAPQUEST_ATTRIBUTION;16 return super.getAttributionText(zoom, topLeft, botRight)+" - "+MAPQUEST_ATTRIBUTION; 17 17 } 18 18 }
Note:
See TracChangeset
for help on using the changeset viewer.