Package io.jmix.mapsui.component.layer
Class RasterLayer
java.lang.Object
io.jmix.mapsui.component.layer.RasterLayer
- All Implemented Interfaces:
Layer,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
ImageLayer,TileLayer
Base class for raster layers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgetId()intReturns maximum layer zoom level.intReturns minimum layer zoom level.Returns layer opacity value.booleanWhether the layer is to be editable on a map.booleanWhether the layer is to be visible on a map.voidrefresh()Notify clients that the layer has changed and need to be redrawn.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetEditable(boolean editable) Sets whether the layer is to be editable on a map.voidsetMaxZoom(int maxZoom) Sets maximum zoom level up to which the layer is visible (inclusive).voidsetMinZoom(int minZoom) Sets minimum zoom level down to which the layer is visible (inclusive).voidsetOpacity(Double opacity) Sets layer opacity value.voidsetVisible(boolean visible) Sets whether the layer should be visible on a map.toString()
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Method Details
-
getOpacity
Returns layer opacity value.- Returns:
- double value in the range between 0.0 (fully transparent) to 1.0 (fully opaque)
-
setOpacity
Sets layer opacity value.- Parameters:
opacity- double value in the range between 0.0 (fully transparent) to 1.0 (fully opaque)
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
setMaxZoom
public void setMaxZoom(int maxZoom) Description copied from interface:LayerSets maximum zoom level up to which the layer is visible (inclusive).- Specified by:
setMaxZoomin interfaceLayer- Parameters:
maxZoom- maximum layer zoom level
-
getMaxZoom
public int getMaxZoom()Description copied from interface:LayerReturns maximum layer zoom level.- Specified by:
getMaxZoomin interfaceLayer- Returns:
- maximum layer zoom level
-
setMinZoom
public void setMinZoom(int minZoom) Description copied from interface:LayerSets minimum zoom level down to which the layer is visible (inclusive).Default value: 0.
- Specified by:
setMinZoomin interfaceLayer- Parameters:
minZoom- minimum layer zoom level
-
getMinZoom
public int getMinZoom()Description copied from interface:LayerReturns minimum layer zoom level.- Specified by:
getMinZoomin interfaceLayer- Returns:
- minimum layer zoom level
-
getId
-
setVisible
public void setVisible(boolean visible) Description copied from interface:LayerSets whether the layer should be visible on a map.Default value:
true.- Specified by:
setVisiblein interfaceLayer- Parameters:
visible- true/false
-
isVisible
public boolean isVisible()Description copied from interface:LayerWhether the layer is to be visible on a map. -
setEditable
public void setEditable(boolean editable) Description copied from interface:LayerSets whether the layer is to be editable on a map.Default value:
false.- Specified by:
setEditablein interfaceLayer- Parameters:
editable- true/false
-
isEditable
public boolean isEditable()Description copied from interface:LayerWhether the layer is to be editable on a map.- Specified by:
isEditablein interfaceLayer- Returns:
trueif the layer is set to be editable; otherwisefalse
-
fireLayerChangedEvent
-
refresh
public void refresh()Description copied from interface:LayerNotify clients that the layer has changed and need to be redrawn. -
toString
-