Changeset 9620 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2016-01-24T23:10:56+01:00 (9 years ago)
Author:
wiktorn
Message:

Refactor structure of TMS based classes.

Move OsmMercator initialization to TMSTileSource and switch all TMS based TileSource so they extend TMSTileSource.

Now WMTSTileSource will not create OsmMercator object that it will not use anyhow.

AbstractTMSTileSource could be named now AbstractTileBasedTileSource, but I did not the name change, to maintain history.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java

    r9619 r9620  
    3838import org.openstreetmap.gui.jmapviewer.interfaces.ICoordinate;
    3939import org.openstreetmap.gui.jmapviewer.interfaces.TemplatedTileSource;
    40 import org.openstreetmap.gui.jmapviewer.tilesources.TMSTileSource;
     40import org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource;
    4141import org.openstreetmap.josm.Main;
    4242import org.openstreetmap.josm.data.coor.EastNorth;
     
    5656 * @since 8526
    5757 */
    58 public class WMTSTileSource extends TMSTileSource implements TemplatedTileSource {
     58public class WMTSTileSource extends AbstractTMSTileSource implements TemplatedTileSource {
    5959    private static final String PATTERN_HEADER  = "\\{header\\(([^,]+),([^}]+)\\)\\}";
    6060
Note: See TracChangeset for help on using the changeset viewer.