public class

MapstedMapApi.LayersImpl

extends Object
implements MapApi.Layers
java.lang.Object
   ↳ com.mapsted.map.MapstedMapApi.LayersImpl

Summary

Public Constructors
LayersImpl(MapApi mapApi, MapstedMapApi.MapViewImpl mapView)
Public Methods
void clearPropertyAndBuildingPinLayers(int propertyId)
Clear all pin layers for property and buildings
void clearPropertyAndBuildingRoutingLayers(int propertyId)
Clear all routing layers for property and buildings
BuildingLayers getBuildingLayers(int buildingId)
Call this function to get building layers corresponding to the building id.
PropertyLayers getPropertyLayer(int propertyId)
Call this function to get the property layer
BuildingLayers getSelectedBuildingLayers()
Call this function to get current selected building layers.
VectorElementMapLayer getTopLayer()
Get the top layer (always on top)
void initialize(int propertyId, VectorElementEventListener vectorElementListener, IMapstedVectorTileClicked vectorTileClickedListener, Consumer<Boolean> callback)
Initializes property (and building) layers for a given property
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.mapsted.map.MapApi.Layers

Public Constructors

public LayersImpl (MapApi mapApi, MapstedMapApi.MapViewImpl mapView)

Public Methods

public void clearPropertyAndBuildingPinLayers (int propertyId)

Clear all pin layers for property and buildings

Parameters
propertyId the propertyId

public void clearPropertyAndBuildingRoutingLayers (int propertyId)

Clear all routing layers for property and buildings

Parameters
propertyId the propertyId

public BuildingLayers getBuildingLayers (int buildingId)

Call this function to get building layers corresponding to the building id.

If you want to get selected building's building layer. Use getSelectedBuildingLayers() instead.

Parameters
buildingId Building id corresponding to the building layer you get.
Returns
  • A building layer contains a list of floor layers which contains a list of map layers. Each layer contains a list of element that's added to the map. If the building layer has not initiated yet, it will return null.

public PropertyLayers getPropertyLayer (int propertyId)

Call this function to get the property layer

Returns
  • Property Layer object

public BuildingLayers getSelectedBuildingLayers ()

Call this function to get current selected building layers.

If you want to get a building layer based on building id. Use getBuildingLayers(int) instead.

Returns
  • A building layer contains a list of floor layers which contains a list of map layers. Each layer contains a list of element that's added to the map. If the building layer has not initiated yet, it will return null.

public VectorElementMapLayer getTopLayer ()

Get the top layer (always on top)

Returns
  • MapLayer dedicated for top layer

public void initialize (int propertyId, VectorElementEventListener vectorElementListener, IMapstedVectorTileClicked vectorTileClickedListener, Consumer<Boolean> callback)

Initializes property (and building) layers for a given property

Parameters
propertyId the property layers to initialize
vectorElementListener the vector element listener
vectorTileClickedListener the vector tile clicked listener
callback callback for whether or not initialization was successful