Class TileLayer
java.lang.Object
io.jmix.mapsflowui.kit.component.model.MapObservableObject
io.jmix.mapsflowui.kit.component.model.layer.Layer<TileSource>
io.jmix.mapsflowui.kit.component.model.layer.BaseTileLayer
io.jmix.mapsflowui.component.model.layer.TileLayer
- All Implemented Interfaces:
BaseTileLayer.HasBaseTileLayerOptions,BaseTileLayer.HasPreload,HasBaseLayerOptions,Serializable
Layer with sources that provide pre-rendered, tiled images in grids that are organized by zoom levels for
specific resolutions.
For more details see: TileLayer docs
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.layer.BaseTileLayer
BaseTileLayer.HasBaseTileLayerOptions, BaseTileLayer.HasPreloadNested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
MapObservableObject.ObjectChangeEvent -
Field Summary
Fields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, listener, metaProperties, parent, removedChildren, syncId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TileLayerOptionsprotected TileLayerOptions<S extends TileSource>
Sprotected StringgetType()voidsetPreload(Integer preload) Sets the preload level.voidsetSource(TileSource source) Sets source to the layer.withClassName(String className) withExtent(Extent extent) SeeLayer.setId(String).withMaxZoom(Double maxZoom) withMinZoom(Double minZoom) withOpacity(Double opacity) withPreload(Integer preload) SeesetPreload(Integer).withSource(TileSource source) withVisible(Boolean visible) withZIndex(Integer zIndex) Methods inherited from class io.jmix.mapsflowui.kit.component.model.layer.Layer
getClassName, getExtent, getId, getMaxZoom, getMinZoom, getOpacity, getVisible, getZIndex, setClassName, setExtent, setId, setMaxZoom, setMinZoom, setOpacity, setVisible, setZIndexMethods inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
addChild, addListener, clearRemovedChildren, clearRemovedChildrenInDepth, equals, fireChangeEvent, getChildren, getEventBus, getMetaProperties, getRemovedChildren, getSyncId, hashCode, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setMapObjectChangeListener, setMetaProperty, setParent, unmarkDirtyInDepth
-
Constructor Details
-
TileLayer
public TileLayer()
-
-
Method Details
-
createOptions
- Specified by:
createOptionsin classLayer<TileSource>
-
getType
- Specified by:
getTypein classMapObservableObject
-
getOptions
- Overrides:
getOptionsin classBaseTileLayer
-
getSource
- Specified by:
getSourcein classLayer<TileSource>- Type Parameters:
S- the source type- Returns:
- the layer source or
nullif not set
-
withId
Description copied from class:LayerSeeLayer.setId(String).- Overrides:
withIdin classLayer<TileSource>- Parameters:
id- id to set ornullto unset value- Returns:
- current instance
-
setSource
Sets source to the layer.For more details see: #setSource docs
Layer supports the following sources:
- Overrides:
setSourcein classLayer<TileSource>- Parameters:
source- source to set
-
withSource
SeeLayer.setSource(Source).Layer supports the following sources:
- Overrides:
withSourcein classLayer<TileSource>- Parameters:
source- source to set- Returns:
- current instance
-
withClassName
Description copied from class:Layer- Overrides:
withClassNamein classLayer<TileSource>- Parameters:
className- CSS class name- Returns:
- current instance
-
withOpacity
Description copied from class:Layer- Overrides:
withOpacityin classLayer<TileSource>- Parameters:
opacity- opacity of the layer- Returns:
- current instance
-
withVisible
Description copied from class:Layer- Overrides:
withVisiblein classLayer<TileSource>- Parameters:
visible- whether layer should be visible- Returns:
- current instance
-
withExtent
Description copied from class:Layer- Overrides:
withExtentin classLayer<TileSource>- Parameters:
extent- extent at which the layer is visible- Returns:
- current instance
-
withZIndex
Description copied from class:Layer- Overrides:
withZIndexin classLayer<TileSource>- Parameters:
zIndex- z-index for layer rendering- Returns:
- current instance
-
withMinZoom
Description copied from class:Layer- Overrides:
withMinZoomin classLayer<TileSource>- Parameters:
minZoom- zoom level (exclusive) above which layer will be visible- Returns:
- current instance
-
withMaxZoom
Description copied from class:Layer- Overrides:
withMaxZoomin classLayer<TileSource>- Parameters:
maxZoom- zoom level (inclusive) at which layer will be visible- Returns:
- current instance
-
getPreload
- Specified by:
getPreloadin interfaceBaseTileLayer.HasPreload- Overrides:
getPreloadin classBaseTileLayer- Returns:
- the level to preload tiles up to or
nullif not set
-
setPreload
Description copied from interface:BaseTileLayer.HasPreloadSets the preload level. Layer loads low-resolution tiles up to preload levels. The default value is0which means no preloading.For more details see: setPreload() docs
- Specified by:
setPreloadin interfaceBaseTileLayer.HasPreload- Overrides:
setPreloadin classBaseTileLayer- Parameters:
preload- the level to preload tiles up to
-
withPreload
SeesetPreload(Integer).- Parameters:
preload- the level to preload tiles up to- Returns:
- current instance
-