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
-
Method Summary
Modifier and TypeMethodDescriptionprotected TileLayerOptions
protected TileLayerOptions
<S extends TileSource>
Sprotected String
getType()
void
setSource
(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, setPreload
Methods 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, setZIndex
Methods 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, unmarkDirtyInDepth
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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:
createOptions
in classLayer<TileSource>
-
getType
- Specified by:
getType
in classMapObservableObject
-
getOptions
- Overrides:
getOptions
in classBaseTileLayer
-
getSource
- Specified by:
getSource
in classLayer<TileSource>
- Type Parameters:
S
- the source type- Returns:
- the layer source or
null
if not set
-
withId
SeeLayer.setId(String)
.- Overrides:
withId
in classLayer<TileSource>
- Parameters:
id
- id to set ornull
to unset value- Returns:
- current instance
-
setSource
Sets source to the layer.For more details see: #setSource docs
Layer supports the following sources:
- Overrides:
setSource
in classLayer<TileSource>
- Parameters:
source
- source to set
-
withSource
SeeLayer.setSource(Source)
.Layer supports the following sources:
- Overrides:
withSource
in classLayer<TileSource>
- Parameters:
source
- source to set- Returns:
- current instance
-
withClassName
- Overrides:
withClassName
in classLayer<TileSource>
- Parameters:
className
- CSS class name- Returns:
- current instance
-
withOpacity
- Overrides:
withOpacity
in classLayer<TileSource>
- Parameters:
opacity
- opacity of the layer- Returns:
- current instance
-
withVisible
- Overrides:
withVisible
in classLayer<TileSource>
- Parameters:
visible
- whether layer should be visible- Returns:
- current instance
-
withExtent
- Overrides:
withExtent
in classLayer<TileSource>
- Parameters:
extent
- extent at which the layer is visible- Returns:
- current instance
-
withZIndex
- Overrides:
withZIndex
in classLayer<TileSource>
- Parameters:
zIndex
- z-index for layer rendering- Returns:
- current instance
-
withMinZoom
- Overrides:
withMinZoom
in classLayer<TileSource>
- Parameters:
minZoom
- zoom level (exclusive) above which layer will be visible- Returns:
- current instance
-
withMaxZoom
- Overrides:
withMaxZoom
in classLayer<TileSource>
- Parameters:
maxZoom
- zoom level (inclusive) at which layer will be visible- Returns:
- current instance
-
withPreload
- Overrides:
withPreload
in classBaseTileLayer
- Parameters:
preload
- the level to preload tiles up to- Returns:
- current instance
-