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
| ||||||||||
MapOverlayRepository |
getMapOverlayRepo()
Get access to the Map Overlay Repository
| ||||||||||
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)
Check whether or not a building is plotted
| ||||||||||
boolean |
isPropertyPlotted(int property)
Check whether or not a property is plotted
| ||||||||||
void | onDestroy() | ||||||||||
void |
plotBuilding(int buildingId, MapApi.PlotListener listener)
Plotting a building on the map (without selecting it)
| ||||||||||
void |
plotProperty(int propertyId, MapApi.PropertyPlotListener listener)
Plotting a property on the map (without selecting it)
| ||||||||||
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()
Remove selected entity pin from map
| ||||||||||
void |
selectBuildingAndDrawIfNeeded(int buildingId, MapApi.PlotListener listener)
Select a specific building and plot it
| ||||||||||
void |
selectEntity(Entity entity, Consumer<Boolean> onComplete)
Call this function to select an entity.
| ||||||||||
void |
selectPropertyAndDrawIfNeeded(int propertyId, MapApi.PropertyPlotListener listener)
Call this function to changes the current selected property corresponding to
a new selected property id.
| ||||||||||
void |
setSelectedBuilding(int buildingId, Consumer<Boolean> onComplete)
Selects the given building id
| ||||||||||
void |
startPropertyDownload(Context context, int propertyId, PropertyDownloadManager.Listener listener)
Starts a property download.
| ||||||||||
boolean |
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 access to the Map Overlay Repository
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
Check whether or not a building is plotted
buildingId | the building |
---|
Check whether or not a property is plotted
property | the property |
---|
Plotting a building on the map (without selecting it)
buildingId | building to plot |
---|---|
listener | callback listener |
Plotting a property on the map (without selecting it)
propertyId | property to plot |
---|---|
listener | callback listener |
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. |
---|
Remove selected entity pin from map
Select a specific building and plot it
buildingId | the building |
---|---|
listener | 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. |
---|---|
onComplete | callback for wether or not selection was successful |
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.
propertyId | The new selected property id for drawing if possible. |
---|---|
listener | The listener is notified when complete. |
Selects the given building id
buildingId | buildingId to be selected. |
---|---|
onComplete | 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. |