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, parent, removedChildren, syncId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ImageLayerOptionsprotected ImageLayerOptions<S extends ImageSource>
Sprotected StringgetType()voidsetSource(ImageSource source) Sets source to the layer.withClassName(String className) withExtent(Extent extent) SeeLayer.setId(String).withMaxZoom(Double maxZoom) withMinZoom(Double 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, 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
-
ImageLayer
public ImageLayer()
-
-
Method Details
-
createOptions
- Specified by:
createOptionsin classLayer<ImageSource>
-
getType
- Specified by:
getTypein classMapObservableObject
-
getOptions
- Specified by:
getOptionsin classLayer<ImageSource>
-
withId
Description copied from class:LayerSeeLayer.setId(String).- Overrides:
withIdin classLayer<ImageSource>- Parameters:
id- id to set ornullto unset value- Returns:
- current instance
-
getSource
- Specified by:
getSourcein classLayer<ImageSource>- Type Parameters:
S- the source type- Returns:
- the layer source or
nullif not set
-
setSource
Sets source to the layer.For more details see: #setSource docs
Layer supports the following sources:
- Overrides:
setSourcein classLayer<ImageSource>- Parameters:
source- source to set
-
withSource
- Overrides:
withSourcein classLayer<ImageSource>- Parameters:
source- source to set- Returns:
- current instance
-
withClassName
Description copied from class:Layer- Overrides:
withClassNamein classLayer<ImageSource>- Parameters:
className- CSS class name- Returns:
- current instance
-
withOpacity
Description copied from class:Layer- Overrides:
withOpacityin classLayer<ImageSource>- Parameters:
opacity- opacity of the layer- Returns:
- current instance
-
withVisible
Description copied from class:Layer- Overrides:
withVisiblein classLayer<ImageSource>- Parameters:
visible- whether layer should be visible- Returns:
- current instance
-
withExtent
Description copied from class:Layer- Overrides:
withExtentin classLayer<ImageSource>- Parameters:
extent- extent at which the layer is visible- Returns:
- current instance
-
withZIndex
Description copied from class:Layer- Overrides:
withZIndexin classLayer<ImageSource>- Parameters:
zIndex- z-index for layer rendering- Returns:
- current instance
-
withMinZoom
Description copied from class:Layer- Overrides:
withMinZoomin classLayer<ImageSource>- Parameters:
minZoom- zoom level (exclusive) above which layer will be visible- Returns:
- current instance
-
withMaxZoom
Description copied from class:Layer- Overrides:
withMaxZoomin classLayer<ImageSource>- Parameters:
maxZoom- zoom level (inclusive) at which layer will be visible- Returns:
- current instance
-