Class BaseLayerOptions
java.lang.Object
io.jmix.mapsflowui.kit.component.model.layer.option.BaseLayerOptions
- All Implemented Interfaces:
- HasBaseLayerOptions
- Direct Known Subclasses:
- BaseImageLayerOptions,- BaseTileLayerOptions,- BaseVectorLayerOptions
Abstract implementation of options for each layer.
 
For more details see: Layer docs
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetClassName(String className) Set a CSS class name to the layer element.voidSets the bounding extent for layer rendering.voidsetMaxZoom(Double maxZoom) Sets the maximum view zoom level (inclusive) at which layer will be visible.voidsetMinZoom(Double minZoom) Sets the minimum view zoom level (exclusive) above which layer will be visible.voidsetOpacity(Double opacity) Sets the opacity of the layer, allowed values range from 0 to 1.voidsetVisible(Boolean visible) Set the visibility of the layer.voidSets the z-index for layer rendering.
- 
Field Details- 
className
- 
opacity
- 
visible
- 
extent
- 
zIndex
- 
minZoom
- 
maxZoom
 
- 
- 
Constructor Details- 
BaseLayerOptionspublic BaseLayerOptions()
 
- 
- 
Method Details- 
getClassName- Specified by:
- getClassNamein interface- HasBaseLayerOptions
- Returns:
- a CSS class name that should be used by the layer element,
 nullvalue means that default value is used: 'ol-layer'
 
- 
setClassNameDescription copied from interface:HasBaseLayerOptionsSet a CSS class name to the layer element. The default value 'ol-layer'.Note, CSS class name is set only at creation time and cannot be changed at runtime. For more details see: Layer docs - Specified by:
- setClassNamein interface- HasBaseLayerOptions
- Parameters:
- className- CSS class name
 
- 
getOpacity- Specified by:
- getOpacityin interface- HasBaseLayerOptions
- Returns:
- the opacity of the layer. nullvalue means that default value is used: '1'
 
- 
setOpacityDescription copied from interface:HasBaseLayerOptionsSets the opacity of the layer, allowed values range from 0 to 1. The default value is '1'.For more details see: setOpacity() docs - Specified by:
- setOpacityin interface- HasBaseLayerOptions
- Parameters:
- opacity- opacity of the layer
 
- 
getVisible- Specified by:
- getVisiblein interface- HasBaseLayerOptions
- Returns:
- the visibility of the layer. nullvalue means that default value is used: 'true'
 
- 
setVisibleDescription copied from interface:HasBaseLayerOptionsSet the visibility of the layer. The default value istrue.For more details see: setVisible() docs - Specified by:
- setVisiblein interface- HasBaseLayerOptions
- Parameters:
- visible- whether layer should be visible
 
- 
getExtent- Specified by:
- getExtentin interface- HasBaseLayerOptions
- Returns:
- the bounding extent for layer rendering or nullif not set
 
- 
setExtentDescription copied from interface:HasBaseLayerOptionsSets the bounding extent for layer rendering. The layer will not be rendered outside of this extent. If not set, the layer will be visible at all extents.For more details see: setExtent() docs - Specified by:
- setExtentin interface- HasBaseLayerOptions
- Parameters:
- extent- extent at which the layer is visible
 
- 
getZIndex- Specified by:
- getZIndexin interface- HasBaseLayerOptions
- Returns:
- z-index for layer rendering or nullif not set
 
- 
setZIndexDescription copied from interface:HasBaseLayerOptionsSets the z-index for layer rendering.At rendering time, the layers will be ordered, first by Z-index and then by position. The default value is 0.For more details see: setZIndex() docs - Specified by:
- setZIndexin interface- HasBaseLayerOptions
- Parameters:
- zIndex- z-index for layer rendering
 
- 
getMinZoom- Specified by:
- getMinZoomin interface- HasBaseLayerOptions
- Returns:
- the minimum view zoom level (exclusive) above which layer will be visible or nullif not set
 
- 
setMinZoomDescription copied from interface:HasBaseLayerOptionsSets the minimum view zoom level (exclusive) above which layer will be visible. Note that the zoom levels for layer visibility are based on the view zoom level, which may be different from a tile source zoom level.For more details see: setMinZoom() docs - Specified by:
- setMinZoomin interface- HasBaseLayerOptions
- Parameters:
- minZoom- zoom level (exclusive) above which layer will be visible
 
- 
getMaxZoom- Specified by:
- getMaxZoomin interface- HasBaseLayerOptions
- Returns:
- the maximum view zoom level (inclusive) at which layer will be visible or nullif not set
 
- 
setMaxZoomDescription copied from interface:HasBaseLayerOptionsSets the maximum view zoom level (inclusive) at which layer will be visible. Note that the zoom levels for layer visibility are based on the view zoom level, which may be different from a tile source zoom level.For more details see: setMaxZoom() docs - Specified by:
- setMaxZoomin interface- HasBaseLayerOptions
- Parameters:
- maxZoom- zoom level (inclusive) at which layer will be visible
 
 
-