Package io.jmix.mapsui.component.layer
Class ImageLayer
java.lang.Object
io.jmix.mapsui.component.layer.RasterLayer
io.jmix.mapsui.component.layer.ImageLayer
- All Implemented Interfaces:
- Layer,- org.springframework.beans.factory.Aware,- org.springframework.context.ApplicationContextAware
A layer displaying an image over specific bounds of a map.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidorg.locationtech.jts.geom.PointReturns the bottom right (SouthEast) point of an image.Returns a geo-image of the layer.Returns a function which will be used to load geo-image of the layer.getId()intReturns maximum layer zoom level.intReturns minimum layer zoom level.org.locationtech.jts.geom.PointReturns the top left (NorthWest) point of an image.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) voidsetBottomRight(org.locationtech.jts.geom.Point bottomRight) Sets the bottom right (SouthEast) point of an image.voidsetEditable(boolean editable) Sets whether the layer is to be editable on a map.voidsetGeoImage(GeoImage geoImage) Sets a geo-image of a layer.voidsetGeoImageDelegate(Function<ImageLayer, GeoImage> geoImageDelegate) Sets a function which will be used to load geo-image of the layer.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).voidsetTopLeft(org.locationtech.jts.geom.Point topLeft) Sets the top left (NorthWest) point of an image.voidsetVisible(boolean visible) Sets whether the layer should be visible on a map.toString()Methods inherited from class io.jmix.mapsui.component.layer.RasterLayergetOpacity, setOpacity
- 
Field Details- 
applicationContextprotected org.springframework.context.ApplicationContext applicationContext
 
- 
- 
Constructor Details- 
ImageLayer
 
- 
- 
Method Details- 
getGeoImageReturns a geo-image of the layer.
- 
setGeoImageSets a geo-image of a layer.
- 
getTopLeftpublic org.locationtech.jts.geom.Point getTopLeft()Returns the top left (NorthWest) point of an image.
- 
setTopLeftpublic void setTopLeft(org.locationtech.jts.geom.Point topLeft) Sets the top left (NorthWest) point of an image.
- 
getBottomRightpublic org.locationtech.jts.geom.Point getBottomRight()Returns the bottom right (SouthEast) point of an image.
- 
setBottomRightpublic void setBottomRight(org.locationtech.jts.geom.Point bottomRight) Sets the bottom right (SouthEast) point of an image.
- 
getGeoImageDelegateReturns a function which will be used to load geo-image of the layer.
- 
setGeoImageDelegateSets a function which will be used to load geo-image of the layer.If this function is specified along with geoImage, thegeoImagewill be ignored and this function will be used to obtain the image.
- 
setApplicationContextpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
- setApplicationContextin interface- org.springframework.context.ApplicationContextAware
- Throws:
- org.springframework.beans.BeansException
 
- 
setMaxZoompublic void setMaxZoom(int maxZoom) Description copied from interface:LayerSets maximum zoom level up to which the layer is visible (inclusive).- Specified by:
- setMaxZoomin interface- Layer
- Parameters:
- maxZoom- maximum layer zoom level
 
- 
getMaxZoompublic int getMaxZoom()Description copied from interface:LayerReturns maximum layer zoom level.- Specified by:
- getMaxZoomin interface- Layer
- Returns:
- maximum layer zoom level
 
- 
setMinZoompublic 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 interface- Layer
- Parameters:
- minZoom- minimum layer zoom level
 
- 
getMinZoompublic int getMinZoom()Description copied from interface:LayerReturns minimum layer zoom level.- Specified by:
- getMinZoomin interface- Layer
- Returns:
- minimum layer zoom level
 
- 
getId
- 
setVisiblepublic void setVisible(boolean visible) Description copied from interface:LayerSets whether the layer should be visible on a map.Default value: true.- Specified by:
- setVisiblein interface- Layer
- Parameters:
- visible- true/false
 
- 
isVisiblepublic boolean isVisible()Description copied from interface:LayerWhether the layer is to be visible on a map.
- 
setEditablepublic 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 interface- Layer
- Parameters:
- editable- true/false
 
- 
isEditablepublic boolean isEditable()Description copied from interface:LayerWhether the layer is to be editable on a map.- Specified by:
- isEditablein interface- Layer
- Returns:
- trueif the layer is set to be editable; otherwise- false
 
- 
fireLayerChangedEvent
- 
refreshpublic void refresh()Description copied from interface:LayerNotify clients that the layer has changed and need to be redrawn.
- 
toString
 
-