public class TMSLayer extends AbstractCachedTileSourceLayer<TMSTileSource> implements NativeScaleLayer
AbstractTileSourceLayer.PrecacheTask, AbstractTileSourceLayer.TileSet, AbstractTileSourceLayer.TileSourceLayerPopupImageryLayer.OffsetAction, ImageryLayer.OffsetMenuEntryLayer.LayerAction, Layer.LayerGpxExportAction, Layer.LayerSaveAction, Layer.LayerSaveAsAction, Layer.MultiLayerAction, Layer.SeparatorLayerActionAbstractMapViewPaintable.CompatibilityModeLayerPainterNativeScaleLayer.Scale, NativeScaleLayer.ScaleListMapViewPaintable.LayerPainter, MapViewPaintable.MapViewEvent, MapViewPaintable.PaintableInvalidationEvent, MapViewPaintable.PaintableInvalidationListener| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
CACHE_REGION_NAME |
static int |
MAX_ZOOM
override minimum/maximum zoom level with those supported by JMapViewer, as these might be used in slippymap chooser
|
static int |
MIN_ZOOM |
private static NativeScaleLayer.ScaleList |
nativeScaleList |
private static java.lang.String |
PREFERENCE_PREFIX |
static BooleanProperty |
PROP_ADD_TO_SLIPPYMAP_CHOOSER
shall TMS layers be added to download dialog
|
static IntegerProperty |
PROP_MAX_ZOOM_LVL
maximum zoom level for TMS layer
|
static IntegerProperty |
PROP_MIN_ZOOM_LVL
minimum zoom level for TMS layer
|
MAX_DISK_CACHE_SIZEcoordinateConverter, tileCache, tileLoader, tileSource, ZOOM_OFFSETicon, info, PROP_SHARPEN_LEVELFILTER_STATE_PROP, NAME_PROP, OPACITY_PROP, propertyChangeSupport, VISIBLE_PROP| Constructor and Description |
|---|
TMSLayer(ImageryInfo info)
Create a layer based on ImageryInfo
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.commons.jcs.access.CacheAccess<java.lang.String,BufferedImageCacheEntry> |
getCache() |
protected java.lang.String |
getCacheName() |
java.util.Collection<java.lang.String> |
getNativeProjections()
Get projections this imagery layer supports natively.
|
NativeScaleLayer.ScaleList |
getNativeScales()
Get native scales of this layer.
|
protected java.lang.Class<? extends TileLoader> |
getTileLoaderClass() |
protected TMSTileSource |
getTileSource()
Creates and returns a new TileSource instance depending on the
ImageryInfo.ImageryType
of the ImageryInfo object specified in the constructor. |
static AbstractTMSTileSource |
getTileSourceStatic(ImageryInfo info)
Creates and returns a new TileSource instance depending on the
ImageryInfo.ImageryType
of the passed ImageryInfo object. |
static TMSTileSource |
getTileSourceStatic(ImageryInfo info,
java.lang.Runnable attributionLoadedTask)
Creates and returns a new TileSource instance depending on the
ImageryInfo.ImageryType
of the passed ImageryInfo object. |
private static NativeScaleLayer.ScaleList |
initNativeScaleList() |
getCache, getDiskCacheSize, getTileLoaderFactory, getTileLoaderFactory, setTileLoaderFactoryactionSupportLayers, attachToMapView, checkMaxZoomLvl, checkMinZoomLvl, clearTileCache, createAndOpenSaveFileChooser, createDisplaySettings, createMapViewPainter, decreaseZoomLevel, destroy, displaySettingsChanged, estimateTileCacheSize, filterChanged, getAdjustAction, getBestZoom, getCommonEntries, getDisplaySettings, getDownloadAreaToCacheTask, getHeaders, getInfoComponent, getLayerListEntries, getMaxZoomLvl, getMaxZoomLvl, getMenuEntries, getMinZoomLvl, getMinZoomLvl, getOffsetMenuEntries, getScaleFactor, getTileSet, getToolTipText, getZoomLevel, hookUpMapView, imageUpdate, increaseZoomLevel, initTileSource, isSavable, loadAllErrorTiles, loadAllTiles, paint, projectionChanged, registerMenuAddition, registerMenuAddition, setMaxZoomLvl, setMinZoomLvl, setZoomLevel, tileLoadingFinished, visitBoundingBox, zoomChanged, zoomDecreaseAllowed, zoomIncreaseAllowedaddImageProcessor, applyImageProcessors, create, createImageProcessor, createTextField, getChangesetSourceTag, getFilterSettings, getIcon, getImageProcessors, getInfo, getOffsetMenuItem, getOffsetMenuItem, getPPD, isMergable, mergeFrom, removeImageProcessor, toStringaddPropertyChangeListener, checkSaveConditions, fireFilterStateChanged, fireOpacityChanged, fireVisibleChanged, getAssociatedFile, getColor, getDefaultLayerPosition, getName, getOpacity, getViewProjectionBounds, hasColor, isBackgroundLayer, isInfoResizable, isProjectionSupported, isRenamed, isVisible, nameSupportedProjections, onPostLoadFromFile, removePropertyChangeListener, rename, setAssociatedFile, setBackgroundLayer, setColor, setFilterStateChanged, setName, setOpacity, setVisible, toggleVisibleaddInvalidationListener, invalidate, removeInvalidationListenerprivate static final java.lang.String CACHE_REGION_NAME
private static final java.lang.String PREFERENCE_PREFIX
public static final IntegerProperty PROP_MIN_ZOOM_LVL
public static final IntegerProperty PROP_MAX_ZOOM_LVL
public static final BooleanProperty PROP_ADD_TO_SLIPPYMAP_CHOOSER
public static final int MAX_ZOOM
public static final int MIN_ZOOM
private static final NativeScaleLayer.ScaleList nativeScaleList
public TMSLayer(ImageryInfo info)
info - description of the layerprotected TMSTileSource getTileSource()
ImageryInfo.ImageryType
of the ImageryInfo object specified in the constructor.
If no appropriate TileSource is found, null is returned.
Currently supported ImageryType are ImageryInfo.ImageryType.TMS,
ImageryInfo.ImageryType.BING, ImageryInfo.ImageryType.SCANEX.getTileSource in class AbstractTileSourceLayer<TMSTileSource>java.lang.IllegalArgumentException - if url from imagery info is null or invalidpublic java.util.Collection<java.lang.String> getNativeProjections()
AbstractTileSourceLayergetNativeProjections in class AbstractTileSourceLayer<TMSTileSource>public static AbstractTMSTileSource getTileSourceStatic(ImageryInfo info)
ImageryInfo.ImageryType
of the passed ImageryInfo object.
If no appropriate TileSource is found, null is returned.
Currently supported ImageryType are ImageryInfo.ImageryType.TMS,
ImageryInfo.ImageryType.BING, ImageryInfo.ImageryType.SCANEX.info - imagery infojava.lang.IllegalArgumentException - if url from imagery info is null or invalidpublic static TMSTileSource getTileSourceStatic(ImageryInfo info, java.lang.Runnable attributionLoadedTask)
ImageryInfo.ImageryType
of the passed ImageryInfo object.
If no appropriate TileSource is found, null is returned.
Currently supported ImageryType are ImageryInfo.ImageryType.TMS,
ImageryInfo.ImageryType.BING, ImageryInfo.ImageryType.SCANEX.info - imagery infoattributionLoadedTask - task to be run once attribution is loaded, might be null, if nothing special shall happenjava.lang.IllegalArgumentException - if url from imagery info is null or invalidprotected java.lang.Class<? extends TileLoader> getTileLoaderClass()
getTileLoaderClass in class AbstractCachedTileSourceLayer<TMSTileSource>protected java.lang.String getCacheName()
getCacheName in class AbstractCachedTileSourceLayer<TMSTileSource>public static org.apache.commons.jcs.access.CacheAccess<java.lang.String,BufferedImageCacheEntry> getCache()
public NativeScaleLayer.ScaleList getNativeScales()
NativeScaleLayergetNativeScales in interface NativeScaleLayerNativeScaleLayer.ScaleList of native scalesprivate static NativeScaleLayer.ScaleList initNativeScaleList()