public class WMTSLayer extends AbstractCachedTileSourceLayer<WMTSTileSource> implements NativeScaleLayer
AbstractTileSourceLayer.PrecacheTask, AbstractTileSourceLayer.TileSourceLayerPopup
ImageryLayer.ApplyOffsetAction, ImageryLayer.OffsetAction
Layer.LayerAction, Layer.LayerGpxExportAction, Layer.LayerSaveAction, Layer.LayerSaveAsAction, Layer.MultiLayerAction, Layer.SeparatorLayerAction
AbstractMapViewPaintable.CompatibilityModeLayerPainter
NativeScaleLayer.Scale, NativeScaleLayer.ScaleList
MapViewPaintable.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_SIZE
currentZoomLevel, MAX_ZOOM, MIN_ZOOM, PROP_MAX_ZOOM_LVL, PROP_MIN_ZOOM_LVL, tileCache, tileLoader, tileSource, ZOOM_OFFSET
icon, info, PROP_FADE_AMOUNT, PROP_FADE_COLOR, PROP_SHARPEN_LEVEL
FILTER_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. |
protected int |
getBestZoom() |
static org.apache.commons.jcs.access.CacheAccess<java.lang.String,BufferedImageCacheEntry> |
getCache() |
protected java.lang.String |
getCacheName() |
protected int |
getMinZoomLvl() |
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. |
boolean |
isProjectionSupported(Projection proj)
allows to check whether a projection is supported or not
|
java.lang.String |
nameSupportedProjections()
Specify user information about projections
|
void |
projectionChanged(Projection oldValue,
Projection newValue) |
getCache, getDiskCacheSize, getTileLoaderFactory, getTileLoaderFactory, setTileLoaderFactory
attachToMapView, checkMaxZoomLvl, checkMinZoomLvl, clearTileCache, createAndOpenSaveFileChooser, createMapViewPainter, decreaseZoomLevel, destroy, displace, displaySettingsChanged, downloadAreaToCache, estimateTileCacheSize, filterChanged, getAdjustAction, getCommonEntries, getDisplaySettings, getDx, getDy, getHeaders, getInfoComponent, getLayerListEntries, getMaxZoomLvl, getMaxZoomLvl, getMenuEntries, getMinZoomLvl, getTileSet, getTileSet, getToolTipText, hookUpMapView, imageUpdate, increaseZoomLevel, initTileSource, isChanged, isSavable, loadAllErrorTiles, loadAllTiles, paint, redraw, registerMenuAddition, registerMenuAddition, setMaxZoomLvl, setMinZoomLvl, setOffset, setZoomLevel, tileLoadingFinished, visitBoundingBox, zoomChanged, zoomDecreaseAllowed, zoomIncreaseAllowed
addImageProcessor, applyImageProcessors, create, createImageProcessor, getFadeColor, getFadeColorWithAlpha, getFilterSettings, getIcon, getImageProcessors, getInfo, getOffsetMenuItem, getOffsetMenuItem, getPPD, isMergable, mergeFrom, removeImageProcessor, toString
addPropertyChangeListener, checkSaveConditions, fireFilterStateChanged, fireOpacityChanged, fireVisibleChanged, getAssociatedFile, getBaseColorProperty, getColorProperty, getDefaultLayerPosition, getName, getOpacity, getViewProjectionBounds, isBackgroundLayer, isInfoResizable, isRenamed, isVisible, onPostLoadFromFile, removePropertyChangeListener, rename, setAssociatedFile, setBackgroundLayer, setFilterStateChanged, setName, setOpacity, setVisible, toggleVisible
addInvalidationListener, invalidate, removeInvalidationListener
private 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()
AbstractTileSourceLayer
TileSourceDisplaySettings
object. Subclasses may implement it to e.g. change the prefix.createDisplaySettings
in class AbstractTileSourceLayer<WMTSTileSource>
protected WMTSTileSource getTileSource()
AbstractTileSourceLayer
TileSource
instance depending on ImageryLayer.info
specified in the constructor.getTileSource
in class AbstractTileSourceLayer<WMTSTileSource>
protected int getBestZoom()
getBestZoom
in class AbstractTileSourceLayer<WMTSTileSource>
protected int getMinZoomLvl()
getMinZoomLvl
in class AbstractTileSourceLayer<WMTSTileSource>
public boolean isProjectionSupported(Projection proj)
Layer
isProjectionSupported
in class Layer
proj
- projectionpublic java.lang.String nameSupportedProjections()
Layer
nameSupportedProjections
in class Layer
public void projectionChanged(Projection oldValue, Projection newValue)
projectionChanged
in interface ProjectionChangeListener
projectionChanged
in class Layer
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()
NativeScaleLayer
getNativeScales
in interface NativeScaleLayer
NativeScaleLayer.ScaleList
of native scales