source: osm/applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/MapQuestOsmTileSource.java@ 31301

Last change on this file since 31301 was 31301, checked in by wiktorn, 9 years ago

Introduce WMS layer based on TMS. (closes: #josm11255)

HEADS UP: After this patch you need to manually remove JAX-B generated file/class: org/w3/_2001/xmlschema/Adapter1.java to compile the tree again.

  • create AbstractTileSourceLayer based on TMSLayer as a base for TMS, WMS and (future) WMTS layers, (addresses #josm11459)
  • WMS layer now uses JCS Caching (closes: #josm7363)
  • introduce new conversion methods in TileSource, that convert both X and Y (lat and lon) in one call. This is necessary for other than PseudoMercator projections
    • introduce TileXY class that represents X and Y indexes of tile in tile matrix/space
    • mark old conversion methods as deprecated
    • refactor JMapViewer and JOSM to new methods
    • change use of Coordinate class to ICoordinate where appropiate
  • extract CachedAttributionBingAerialTileSource to separate file
  • create TemplatedWMSTileSource that provides the WMS Layer with square (according to current projection) tiles (closes: #josm11572, closes: #josm7682, addresses: #josm5454)
  • implemented precaching imagery along GPX track for AbstractTileSourceLayer, so now it work for both - WMS and TMS (closes: #josm9154)
  • implemented common righ-click menu on map view, as well on layer list (closes #josm3591)
  • create separate build commands for JMapViewer classes to easily spot, when josm classes are used within JMapViewer
  • remove unnecessary classes of previous WMS implementation - GeorefImage, wms-cache.xsd (and JAXB task from build), WMSCache, WMSRequest, WMSGrabber, HTMLGrabber, WMSException

After this patch you need to manually remove JAX-B generated file/class: org/w3/_2001/xmlschema/Adapter1.java

  • Property svn:eol-style set to native
File size: 654 bytes
Line 
1// License: GPL. For details, see Readme.txt file.
2package org.openstreetmap.gui.jmapviewer.tilesources;
3
4import org.openstreetmap.gui.jmapviewer.interfaces.ICoordinate;
5
6public class MapQuestOsmTileSource extends AbstractMapQuestTileSource {
7
8 private static final String PATTERN = "http://otile%d.mqcdn.com/tiles/1.0.0/osm";
9
10 public MapQuestOsmTileSource() {
11 super("MapQuest-OSM", PATTERN, "mapquest-osm");
12 }
13
14 @Override
15 public String getAttributionText(int zoom, ICoordinate topLeft,
16 ICoordinate botRight) {
17 return super.getAttributionText(zoom, topLeft, botRight)+" - "+MAPQUEST_ATTRIBUTION;
18 }
19}
Note: See TracBrowser for help on using the repository browser.