SmartMapObject

SmartMapObject

Members

Methods

new SmartMapObject(latitude, longitude, floorIndex, buildingRef, localRefopt, titleopt)

Data transfer object used by SmartSDK. Creates GeoJSON features based on the given properties. You can use SmartMapObject for adding markers to the map or for navigation. Please see the documentation of the use cases in the SmartNavigationView.
Properties:
Name Type Description
smartMapObject object GeoJSON feature built based on the given properties.
Parameters
Name Type Attributes Default Description
latitude number gps latitude
longitude number gps longitude
floorIndex number the floorIndex index to show
buildingRef string unique identifier for the building
localRef string <optional>
'' identifier for the point of interest. Corresponds to the 'localRef' property in the map data.
title string <optional>
'' Title of the SmartMapObject. Can be visualised on the map

Methods

(static) setProperty(key, value)

Set the given property of the SmartMapObject. Please note that if you have added this object as the marker to the map changing it's properties will not update map. This is upcoming feature but for the time being you can remove the marker and then add it again to update it.
Parameters
Name Type Description
key string Key of the property to be changed
value * Value of the property to be changed