Changeset 32051 in osm for applications/viewer/jmapviewer
- Timestamp:
- 2016-02-07T23:59:37+01:00 (9 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/AbstractTMSTileSource.java
r32025 r32051 10 10 import java.util.Map; 11 11 import java.util.Map.Entry; 12 import java.util.Set; 12 13 13 14 import org.openstreetmap.gui.jmapviewer.OsmMercator; … … 27 28 protected String baseUrl; 28 29 protected String id; 29 private final Map<String, List<String>> noTileHeaders;30 private final Map<String, List<String>> noTileChecksums;30 private final Map<String, Set<String>> noTileHeaders; 31 private final Map<String, Set<String>> noTileChecksums; 31 32 private final Map<String, String> metadataHeaders; 32 33 protected int tileSize; … … 172 173 public boolean isNoTileAtZoom(Map<String, List<String>> headers, int statusCode, byte[] content) { 173 174 if (noTileHeaders != null && headers != null) { 174 for (Entry<String, List<String>> searchEntry: noTileHeaders.entrySet()) {175 for (Entry<String, Set<String>> searchEntry: noTileHeaders.entrySet()) { 175 176 List<String> headerVals = headers.get(searchEntry.getKey()); 176 177 if (headerVals != null) { … … 186 187 } 187 188 if (noTileChecksums != null) { 188 for (Entry<String, List<String>> searchEntry: noTileChecksums.entrySet()) {189 for (Entry<String, Set<String>> searchEntry: noTileChecksums.entrySet()) { 189 190 MessageDigest md = null; 190 191 try { -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TileSourceInfo.java
r32024 r32051 2 2 package org.openstreetmap.gui.jmapviewer.tilesources; 3 3 4 import java.util.List;5 4 import java.util.Map; 5 import java.util.Set; 6 6 7 7 /** … … 21 21 22 22 /** headers meaning, that there is no tile at this zoom level */ 23 protected Map<String, List<String>> noTileHeaders;23 protected Map<String, Set<String>> noTileHeaders; 24 24 25 25 /** checksum of empty tiles */ 26 protected Map<String, List<String>> noTileChecksums;26 protected Map<String, Set<String>> noTileChecksums; 27 27 28 28 /** minimum zoom level supported by the tile source */ … … 100 100 * @since 32022 101 101 */ 102 public Map<String, List<String>> getNoTileHeaders() {102 public Map<String, Set<String>> getNoTileHeaders() { 103 103 return noTileHeaders; 104 104 } … … 109 109 * @since 32022 110 110 */ 111 public Map<String, List<String>> getNoTileChecksums() {111 public Map<String, Set<String>> getNoTileChecksums() { 112 112 return noTileChecksums; 113 113 }
Note:
See TracChangeset
for help on using the changeset viewer.