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:
HasBaseLayerOptions,HasBaseTileLayerOptions,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.MapObservableObject
MapObservableObject.ObjectChangeEvent -
Field Summary
Fields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, listener, metaProperties, removedChildren, syncId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TileLayerOptionsprotected TileLayerOptions<S extends TileSource>
Sprotected StringgetType()voidsetSource(TileSource source) Sets source to the layer.withClassName(String className) withExtent(Extent extent) SeeLayer.setId(String).withMaxZoom(Integer maxZoom) withMinZoom(Integer minZoom) withOpacity(Double opacity) withPreload(Integer preload) withSource(TileSource source) withVisible(Boolean visible) withZIndex(Integer zIndex) Methods inherited from class io.jmix.mapsflowui.kit.component.model.layer.BaseTileLayer
getPreload, setPreloadMethods inherited from class io.jmix.mapsflowui.kit.component.model.layer.Layer
getClassName, getExtent, getId, getMaxZoom, getMinZoom, getOpacity, getZIndex, isVisible, 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, unmarkDirtyInDepthMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.mapsflowui.kit.component.model.layer.option.HasBaseLayerOptions
getClassName, getExtent, getMaxZoom, getMinZoom, getOpacity, getZIndex, isVisible, setClassName, setExtent, setMaxZoom, setMinZoom, setOpacity, setVisible, setZIndex
-
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
SeeLayer.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
- Overrides:
withClassNamein classLayer<TileSource>- Parameters:
className- CSS class name- Returns:
- current instance
-
withOpacity
- Overrides:
withOpacityin classLayer<TileSource>- Parameters:
opacity- opacity of the layer- Returns:
- current instance
-
withVisible
- Overrides:
withVisiblein classLayer<TileSource>- Parameters:
visible- whether layer should be visible- Returns:
- current instance
-
withExtent
- Overrides:
withExtentin classLayer<TileSource>- Parameters:
extent- extent at which the layer is visible- Returns:
- current instance
-
withZIndex
- Overrides:
withZIndexin classLayer<TileSource>- Parameters:
zIndex- z-index for layer rendering- Returns:
- current instance
-
withMinZoom
- Overrides:
withMinZoomin classLayer<TileSource>- Parameters:
minZoom- zoom level (exclusive) above which layer will be visible- Returns:
- current instance
-
withMaxZoom
- Overrides:
withMaxZoomin classLayer<TileSource>- Parameters:
maxZoom- zoom level (inclusive) at which layer will be visible- Returns:
- current instance
-
withPreload
- Overrides:
withPreloadin classBaseTileLayer- Parameters:
preload- the level to preload tiles up to- Returns:
- current instance
-