Changeset 11868 in josm for trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
- Timestamp:
- 2017-04-09T16:12:33+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r11862 r11868 30 30 import java.util.ArrayList; 31 31 import java.util.Arrays; 32 import java.util.Collection; 32 33 import java.util.Collections; 33 34 import java.util.Comparator; … … 227 228 228 229 /** 230 * Get projections this imagery layer supports natively. 231 * 232 * For example projection of tiles that are downloaded from a server. Layer 233 * may support even more projections (by reprojecting the tiles), but with a 234 * certain loss in image quality and performance. 235 * @return projections this imagery layer supports natively; null if 236 * layer is projection agnostic. 237 */ 238 public abstract Collection<String> getNativeProjections(); 239 240 /** 229 241 * Creates and returns a new {@link TileSource} instance depending on {@link #info} specified in the constructor. 230 242 * … … 349 361 JPanel panel = (JPanel) super.getInfoComponent(); 350 362 List<List<String>> content = new ArrayList<>(); 363 Collection<String> nativeProjections = getNativeProjections(); 364 if (nativeProjections != null) { 365 content.add(Arrays.asList(tr("Native projections"), Utils.join(", ", getNativeProjections()))); 366 } 351 367 EastNorth offset = getDisplaySettings().getDisplacement(); 352 368 if (offset.distanceSq(0, 0) > 1e-10) {
Note:
See TracChangeset
for help on using the changeset viewer.