public class WMTSLayer extends AbstractCachedTileSourceLayer<WMTSTileSource> 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 |
private static java.lang.String |
PREFERENCE_PREFIX |
MAX_DISK_CACHE_SIZEcoordinateConverter, MAX_ZOOM, MIN_ZOOM, PROP_MAX_ZOOM_LVL, PROP_MIN_ZOOM_LVL, tileCache, tileLoader, tileSource, ZOOM_OFFSETicon, info, PROP_SHARPEN_LEVELFILTER_STATE_PROP, NAME_PROP, OPACITY_PROP, propertyChangeSupport, VISIBLE_PROP| Constructor and Description |
|---|
WMTSLayer(ImageryInfo info)
Creates WMTS layer from ImageryInfo
|
| Modifier and Type | Method and Description |
|---|---|
protected TileSourceDisplaySettings |
createDisplaySettings()
This method creates the
TileSourceDisplaySettings object. |
int |
getBestZoom()
Returns best zoom level.
|
static org.apache.commons.jcs.access.CacheAccess<java.lang.String,BufferedImageCacheEntry> |
getCache() |
protected java.lang.String |
getCacheName() |
protected int |
getMinZoomLvl() |
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 WMTSTileSource |
getTileSource()
Creates and returns a new
TileSource instance depending on ImageryLayer.info specified in the constructor. |
void |
projectionChanged(Projection oldValue,
Projection newValue) |
getCache, getDiskCacheSize, getTileLoaderFactory, getTileLoaderFactory, setTileLoaderFactoryactionSupportLayers, attachToMapView, checkMaxZoomLvl, checkMinZoomLvl, clearTileCache, createAndOpenSaveFileChooser, createMapViewPainter, decreaseZoomLevel, destroy, displaySettingsChanged, estimateTileCacheSize, filterChanged, getAdjustAction, getCommonEntries, getDisplaySettings, getDownloadAreaToCacheTask, getHeaders, getInfoComponent, getLayerListEntries, getMaxZoomLvl, getMaxZoomLvl, getMenuEntries, getMinZoomLvl, getOffsetMenuEntries, getScaleFactor, getTileSet, getToolTipText, getZoomLevel, hookUpMapView, imageUpdate, increaseZoomLevel, initTileSource, isSavable, loadAllErrorTiles, loadAllTiles, paint, 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 PREFERENCE_PREFIX
private static final java.lang.String CACHE_REGION_NAME
public WMTSLayer(ImageryInfo info)
info - Imagery Info describing the layerprotected TileSourceDisplaySettings createDisplaySettings()
AbstractTileSourceLayerTileSourceDisplaySettings object. Subclasses may implement it to e.g. change the prefix.createDisplaySettings in class AbstractTileSourceLayer<WMTSTileSource>protected WMTSTileSource getTileSource()
AbstractTileSourceLayerTileSource instance depending on ImageryLayer.info specified in the constructor.getTileSource in class AbstractTileSourceLayer<WMTSTileSource>public int getBestZoom()
AbstractTileSourceLayergetBestZoom in class AbstractTileSourceLayer<WMTSTileSource>protected int getMinZoomLvl()
getMinZoomLvl in class AbstractTileSourceLayer<WMTSTileSource>public java.util.Collection<java.lang.String> getNativeProjections()
AbstractTileSourceLayergetNativeProjections in class AbstractTileSourceLayer<WMTSTileSource>public void projectionChanged(Projection oldValue, Projection newValue)
projectionChanged in interface ProjectionChangeListenerprojectionChanged in class AbstractTileSourceLayer<WMTSTileSource>protected java.lang.Class<? extends TileLoader> getTileLoaderClass()
getTileLoaderClass in class AbstractCachedTileSourceLayer<WMTSTileSource>protected java.lang.String getCacheName()
getCacheName in class AbstractCachedTileSourceLayer<WMTSTileSource>public static org.apache.commons.jcs.access.CacheAccess<java.lang.String,BufferedImageCacheEntry> getCache()
public NativeScaleLayer.ScaleList getNativeScales()
NativeScaleLayergetNativeScales in interface NativeScaleLayerNativeScaleLayer.ScaleList of native scales