com.mapsted.map.MapApi.DataSources |
![]() |
Access/manage map-related data sources and current selections
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
addMapSelectionChangeListener(MapSelectionChangeListener mapSelectionChangeListener)
Be notified of map selection changes
| ||||||||||
abstract void |
deselectBuilding()
Deselects the current building (property remains selected)
| ||||||||||
abstract void |
deselectEntity()
Deselects entity if any selected
| ||||||||||
abstract void |
enableAutomaticClickProcessing(boolean enable)
enable/disable automated click processing
| ||||||||||
abstract MapOverlayRepository |
getMapOverlayRepo()
Get access to the Map Overlay Repository
| ||||||||||
abstract Entity |
getSelectedEntity()
Gets the selected entity if any
| ||||||||||
abstract SelectedLocation |
getSelectedLocation()
Call this function to get the selected property/building location.
| ||||||||||
abstract String[] |
getSelectedLocationName()
Gets SelectedLocation name
| ||||||||||
abstract int |
getSelectedPropertyId()
Get the currently selected property (if one is selected)
| ||||||||||
abstract boolean |
isAutomaticClickProcessingEnabled()
Check whether or not automatic click processing is enabled
| ||||||||||
abstract boolean |
isBuildingPlotted(int buildingId)
Check whether or not a building is plotted
| ||||||||||
abstract boolean |
removeBuildingFromMap(int buildingId, boolean force)
Remove building from map.
| ||||||||||
abstract void |
removeMapSelectionChangeListener(MapSelectionChangeListener mapSelectionChangeListener)
Unsubscribe from map selection change events
| ||||||||||
abstract void |
removePropertyFromMap(int propertyId)
Call this function if you want to remove the property drawings from the map.
| ||||||||||
abstract void |
removeSelectEntityPin()
Remove selected entity pin from map
| ||||||||||
abstract void |
selectBuildingAndDrawIfNeeded(int selectedBuildingId, MapApi.SelectBuildingListener buildingListener)
Select a specific building and plot it
| ||||||||||
abstract void |
selectEntity(Entity entity)
Call this function to select an entity.
| ||||||||||
abstract void |
selectPropertyAndDrawIfNeeded(int selectedPropertyId, MapApi.SelectPropertyListener listener)
Call this function to change the current selected property corresponding to
a new selected property id.
| ||||||||||
abstract void |
setSelectedBuilding(int buildingId)
Selects the given building id
| ||||||||||
abstract void |
setSelectedBuilding(int buildingId, MapApi.SelectBuildingListener listener)
Selects the given building id
| ||||||||||
abstract void |
startPropertyDownload(Context context, int propertyId, PropertyDownloadManager.Listener listener)
Starts a property download.
| ||||||||||
abstract boolean |
switchFloor(int targetBuildingId, int targetFloorId)
Call this function to perform a floor switch.
|
Be notified of map selection changes
mapSelectionChangeListener | listener to be called |
---|
Deselects the current building (property remains selected)
Deselects entity if any selected
enable/disable automated click processing
enable | whether to enable to disable |
---|
Get access to the Map Overlay Repository
Call this function to get the selected property/building location.
Gets SelectedLocation name
Get the currently selected property (if one is selected)
Check whether or not automatic click processing is enabled
Check whether or not a building is plotted
buildingId | the building |
---|
Remove building from map. Note that if force is false, and building is involved in routing or currently in use, then this operation may fail
buildingId | building to remove |
---|---|
force | whether or not to force the removal |
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. |
---|
Remove selected entity pin from map
Select a specific building and plot it
selectedBuildingId | the building |
---|---|
buildingListener | callback when complete |
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 change 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. |
---|---|
listener | The listener is notified when selected map data events occur. |
Selects the given building id
buildingId | buildingId to be selected. |
---|
Selects the given building id
buildingId | buildingId to be selected. |
---|---|
listener | callback with updates. |
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. |