Changeset 31125 in osm for applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TileSourceInfo.java
- Timestamp:
- 2015-05-14T13:25:43+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TileSourceInfo.java
r31122 r31125 3 3 4 4 import java.util.Map; 5 6 import org.openstreetmap.gui.jmapviewer.OsmMercator; 5 7 6 8 /** … … 28 30 protected String cookies; 29 31 32 /** tile size of the displayed tiles */ 33 private int tileSize = OsmMercator.DEFAUL_TILE_SIZE; 30 34 31 35 /** … … 58 62 59 63 /** 60 * 64 * Request name of the tile source 61 65 * @return name of the tile source 62 66 */ … … 66 70 67 71 /** 68 * 72 * Request URL of the tile source 69 73 * @return url of the tile source 70 74 */ … … 74 78 75 79 /** 76 * 80 * Request header information for empty tiles for servers delivering such tile types 77 81 * @return map of headers, that when set, means that this is "no tile at this zoom level" situation 78 82 */ … … 82 86 83 87 /** 84 * 88 * Request supported minimum zoom level 85 89 * @return minimum zoom level supported by tile source 86 90 */ … … 90 94 91 95 /** 92 * 96 * Request supported maximum zoom level 93 97 * @return maximum zoom level supported by tile source 94 98 */ … … 98 102 99 103 /** 100 * 104 * Request cookies to be sent together with request 101 105 * @return cookies to be sent along with request to tile source 102 106 */ … … 105 109 } 106 110 111 /** 112 * Request tile size of this tile source 113 * @return tile size provided by this tile source 114 */ 115 public int getTileSize() { 116 return tileSize; 117 } 118 119 /** 120 * Sets the tile size provided by this tile source 121 * @param tileSize 122 */ 123 public void setTileSize(int tileSize) { 124 if (tileSize <= 0) { 125 throw new AssertionError("Invalid tile size: " + tileSize); 126 } 127 this.tileSize = tileSize; 128 } 107 129 }
Note:
See TracChangeset
for help on using the changeset viewer.