Changeset 18356 in osm for applications/viewer/jmapviewer


Ignore:
Timestamp:
2009-10-29T00:06:43+01:00 (15 years ago)
Author:
dhansen
Message:

Allow subclasses to override image extension. Used for jpg maps.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmTileSource.java

    r18211 r18356  
    2929        }
    3030
     31        public String getExtension() {
     32            return "png";
     33        }
     34
    3135        public String getTilePath(int zoom, int tilex, int tiley) {
    32             return "/" + zoom + "/" + tilex + "/" + tiley + ".png";
     36            return "/" + zoom + "/" + tilex + "/" + tiley + "." + getExtension();
    3337        }
    3438
Note: See TracChangeset for help on using the changeset viewer.