MapPlacesManager

class MapPlacesManager

Types

FillPlacesListener
Link copied to clipboard
interface FillPlacesListener

Callback interface called when fillPlaces operation finishes

QueryVisiblePlacesListener
Link copied to clipboard
interface QueryVisiblePlacesListener

Callback interface called when queryVisiblePlaces operation finishes

Functions

clear
Link copied to clipboard
fun clear()

Clear all places imported by fillPlaces method

fillPlaces
Link copied to clipboard
fun fillPlaces(places: Array<MapPlace>, categories: Array<MapPlaceCategory>, listener: MapPlacesManager.FillPlacesListener = FillPlacesListenerWrapper(), executor: Executor? = null)

Import given map places and categories into map drawing engine All previous places are removed during this process

getPlacesCount
Link copied to clipboard
fun getPlacesCount(): Int

Get number of places imported by fillPlaces method

queryVisiblePlaces
Link copied to clipboard
fun queryVisiblePlaces(categories: Array<String>, emptyDescription: Boolean, listener: MapPlacesManager.QueryVisiblePlacesListener, executor: Executor? = null)

Query visible places filtered by category and/or description text A place is considered visible when:

updatePlace
Link copied to clipboard
fun updatePlace(place: MapPlace)

Update place's data of imported map place of the same id (see MapPlace.id)