Class ImageLayer
java.lang.Object
io.jmix.mapsflowui.kit.component.model.MapObservableObject
io.jmix.mapsflowui.kit.component.model.layer.Layer<S>
io.jmix.mapsflowui.kit.component.model.layer.BaseImageLayer<ImageSource>
io.jmix.mapsflowui.component.model.layer.ImageLayer
- All Implemented Interfaces:
HasBaseLayerOptions
,Serializable
Layer with server-rendered images that are available for arbitrary extents and resolutions.
For more details see: ImageLayer 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 HasBaseImageLayerOptions
protected HasBaseImageLayerOptions
<S extends ImageSource>
Sprotected String
getType()
void
setSource
(ImageSource source) Sets source to the layer.withClassName
(String className) withExtent
(Extent extent) SeeLayer.setId(String)
.withMaxZoom
(Integer maxZoom) withMinZoom
(Integer minZoom) withOpacity
(Double opacity) withSource
(ImageSource 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, 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
-
Constructor Details
-
ImageLayer
public ImageLayer()
-
-
Method Details
-
createOptions
- Specified by:
createOptions
in classLayer<ImageSource>
-
getType
- Specified by:
getType
in classMapObservableObject
-
getOptions
- Specified by:
getOptions
in classLayer<ImageSource>
-
withId
SeeLayer.setId(String)
.- Overrides:
withId
in classLayer<ImageSource>
- Parameters:
id
- id to set ornull
to unset value- Returns:
- current instance
-
getSource
- Specified by:
getSource
in classLayer<ImageSource>
- Type Parameters:
S
- the source type- Returns:
- the layer source or
null
if not set
-
setSource
Sets source to the layer.For more details see: #setSource docs
Layer supports the following sources:
- Overrides:
setSource
in classLayer<ImageSource>
- Parameters:
source
- source to set
-
withSource
- Overrides:
withSource
in classLayer<ImageSource>
- Parameters:
source
- source to set- Returns:
- current instance
-
withClassName
- Overrides:
withClassName
in classLayer<ImageSource>
- Parameters:
className
- CSS class name- Returns:
- current instance
-
withOpacity
- Overrides:
withOpacity
in classLayer<ImageSource>
- Parameters:
opacity
- opacity of the layer- Returns:
- current instance
-
withVisible
- Overrides:
withVisible
in classLayer<ImageSource>
- Parameters:
visible
- whether layer should be visible- Returns:
- current instance
-
withExtent
- Overrides:
withExtent
in classLayer<ImageSource>
- Parameters:
extent
- extent at which the layer is visible- Returns:
- current instance
-
withZIndex
- Overrides:
withZIndex
in classLayer<ImageSource>
- Parameters:
zIndex
- z-index for layer rendering- Returns:
- current instance
-
withMinZoom
- Overrides:
withMinZoom
in classLayer<ImageSource>
- Parameters:
minZoom
- zoom level (exclusive) above which layer will be visible- Returns:
- current instance
-
withMaxZoom
- Overrides:
withMaxZoom
in classLayer<ImageSource>
- Parameters:
maxZoom
- zoom level (inclusive) at which layer will be visible- Returns:
- current instance
-