queryVisiblePlaces

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:

  1. it's located inside of the visible area on at least one map view

  2. current zoom level of the map is bigger (closer) than corresponding SYMapPlaceCategory.zoomLimit

  3. not currently grouped into a cluster If a place fits criteria but actually hidden due to overlapping with another place, it's considered as visible.

Parameters

categories

array of category identifiers which should be included in result (see MapPlaceCategory.id)

emptyDescription

if true, only places with empty description text will be included in result (see MapPlace.description)

listener

callback listener with matching map places array which will be called when operation finishes

executor

callback will be called on this executor