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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HasBaseImageLayerOptionsprotected HasBaseImageLayerOptions<S extends ImageSource>
Sprotected StringgetType()voidsetSource(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, 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, 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
SeeLayer.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
- Overrides:
withClassNamein classLayer<ImageSource>- Parameters:
className- CSS class name- Returns:
- current instance
-
withOpacity
- Overrides:
withOpacityin classLayer<ImageSource>- Parameters:
opacity- opacity of the layer- Returns:
- current instance
-
withVisible
- Overrides:
withVisiblein classLayer<ImageSource>- Parameters:
visible- whether layer should be visible- Returns:
- current instance
-
withExtent
- Overrides:
withExtentin classLayer<ImageSource>- Parameters:
extent- extent at which the layer is visible- Returns:
- current instance
-
withZIndex
- Overrides:
withZIndexin classLayer<ImageSource>- Parameters:
zIndex- z-index for layer rendering- Returns:
- current instance
-
withMinZoom
- Overrides:
withMinZoomin classLayer<ImageSource>- Parameters:
minZoom- zoom level (exclusive) above which layer will be visible- Returns:
- current instance
-
withMaxZoom
- Overrides:
withMaxZoomin classLayer<ImageSource>- Parameters:
maxZoom- zoom level (inclusive) at which layer will be visible- Returns:
- current instance
-