LayerManager

open class LayerManager

A manager class containing a list of building layers and property layers. Consists of utility methods for adding, deleting and fetching all the layers

Constructors

Link copied to clipboard
constructor(@Nonnull mapApi: MapApi)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun addPropertyLayer(propertyId: Int, @Nullable vectorElementEventListener: VectorElementEventListener, @Nullable vectorTileClickedListener: IMapstedVectorTileClicked, @NonNull mapViewAndBaseProjectionProvider: MapViewAndBaseProjectionProvider, mapApi: MapApi, callback: Consumer<Boolean>)
Call this function to add new property layer of a property.
Link copied to clipboard
open fun applyMapPerspective(mapPerspective: Int)
Link copied to clipboard
open fun applyMapStyle(baseMapStyle: Int)
Link copied to clipboard
open fun deletePropertyLayers(propertyId: Int)
Call this function to delete property layers of a property.
Link copied to clipboard
Call this function to get building layers.
Link copied to clipboard
open fun getPropertyLayer(propertyId: Int): PropertyLayers
Call this function to get a specific property layer.
Link copied to clipboard
open fun onDestroy()
Link copied to clipboard
open fun refreshAllStyles()
Refreshes all styles, should be used when things like languages get updated