MapOverlayItems

open class MapOverlayItems

Types

Link copied to clipboard
interface AccessResolver
Resolves the active access level id for a property so the overlay convert path can omit role-restricted overlays without every caller (BuildingLayers / MapPlotterForProperty) having to thread the role through.

Functions

Link copied to clipboard
Clear the resolver, but only if it is still resolver (so a newer MapstedMapApi that registered after this one is not clobbered when the older instance is destroyed).
Link copied to clipboard
open fun convert(@NonNull mapOverlaysList: List<MapOverlayItem>, currentZoom: Float): VectorElementVector

open fun convert(@NonNull mapOverlaysListIn: List<MapOverlayItem>, currentZoom: Float, @Nullable coreApi: CoreApi, @Nullable accessLevelId: String): VectorElementVector
Access-aware convert: restricted overlays (those failing hasAccess for the given non-empty accessLevelId) are omitted before rendering.
Link copied to clipboard
open fun filterByAccess(@NonNull mapOverlaysList: List<MapOverlayItem>, @Nullable coreApi: CoreApi, @Nullable accessLevelId: String): List<MapOverlayItem>
Filter overlays by the active access level.
Link copied to clipboard
open fun from(mapOverlayResponseItem: MapOverlayResponseItem): MapOverlayItem
Link copied to clipboard
Install (or clear, with null) the access resolver used by the default convert rendering path.