java.lang.Object | |
↳ | com.mapsted.map.MapstedMapApi.DataSourcesImpl |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DataSourcesImpl(MapstedMapApi mapApi) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addMapSelectionChangeListener(MapSelectionChangeListener mapSelectionChangeListener)
Be notified of map selection changes
| ||||||||||
void |
deselectBuilding()
Deselects the current building (property remains selected)
| ||||||||||
void |
deselectEntity()
Deselect all entities
| ||||||||||
void |
enableAutomaticClickProcessing(boolean enable)
enable/disable automated click processing
| ||||||||||
BuildingData |
getSelectedBuildingData()
Get current selected building data.
| ||||||||||
Entity |
getSelectedEntity()
Gets the selected entity if any
| ||||||||||
SelectedLocation |
getSelectedLocation()
Call this function to get selected building location.
| ||||||||||
String[] |
getSelectedLocationName()
Gets SelectedLocation name
| ||||||||||
int |
getSelectedPropertyId()
Get current selected property id.
| ||||||||||
boolean |
isAutomaticClickProcessingEnabled()
Check whether or not automatic click processing is enabled
| ||||||||||
boolean | isBuildingPlotted(int buildingId) | ||||||||||
void | onDestroy() | ||||||||||
void | plotBuilding(int buildingId) | ||||||||||
boolean |
removeBuildingFromMap(int buildingId, boolean force)
Call this function to remove a specific building on the map
| ||||||||||
void |
removeMapSelectionChangeListener(MapSelectionChangeListener mapSelectionChangeListener)
Unsubscribe from map selection change events
| ||||||||||
void |
removePropertyFromMap(int propertyId)
Call this function if you want to remove the property drawings from the map.
| ||||||||||
void | removeSelectEntityPin() | ||||||||||
void | selectBuildingAndDrawIfNeeded(int selectedBuildingId, MapDataSelection.Listener buildingListener) | ||||||||||
void |
selectEntity(Entity entity)
Call this function to select an entity.
| ||||||||||
void |
selectPropertyAndDrawIfNeeded(int selectedPropertyId, MapApi.SelectPropertyListener selectPropertyListener)
Call this function to changes the current selected property corresponding to
a new selected property id.
| ||||||||||
void |
setSelectedBuilding(int buildingId, MapDataSelection.Listener listener)
Selects the given building id
| ||||||||||
void |
setSelectedBuilding(int buildingId)
Selects the given building id
| ||||||||||
void |
startPropertyDownload(Context context, int propertyId, PropertyDownloadManager.Listener listener)
Starts a property download.
| ||||||||||
void |
switchFloor(int targetBuildingId, int targetFloorId)
Call this function to perform a floor switch.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Be notified of map selection changes
mapSelectionChangeListener | listener to be called |
---|
Deselects the current building (property remains selected)
Deselect all entities
enable/disable automated click processing
enable | whether to enable to disable |
---|
Get current selected building data.
Call this function to get selected building location.
Gets SelectedLocation name
Get current selected property id.
Check whether or not automatic click processing is enabled
Call this function to remove a specific building on the map
buildingId | building to remove from map |
---|---|
force | if false, will not remove if user is at this building or a routing session that involves this building is ongoing. |
Unsubscribe from map selection change events
mapSelectionChangeListener | current listener to unsubscribe |
---|
Call this function if you want to remove the property drawings from the map. It will remove property data from core library.
propertyId | Property id corresponding to the property you want to remove. |
---|
Call this function to select an entity. This will store the selected entity.
entity | is a Entity. It is entities on the map. |
---|
Call this function to changes the current selected property corresponding to a new selected property id. The map will be updated and re-draw the new selected property. Note that you will have to center the map to property yourself if needed.
selectedPropertyId | The new selected property id for drawing if possible. |
---|---|
selectPropertyListener | The listener is notified when complete. |
Selects the given building id
buildingId | buildingId to be selected. |
---|---|
listener | callback with updates. |
Selects the given building id
buildingId | buildingId to be selected. |
---|
Starts a property download.
context | Application context |
---|---|
propertyId | propertyId of property to download |
listener | Listener to track the download progress |
Call this function to perform a floor switch.
targetBuildingId | the building id |
---|---|
targetFloorId | The floor id for the floor to display on the map. |