DataInspectorControl

class DataInspectorControl(mapController: MapController)

A data control that queries map layers at a target coordinate and presents a callout. DataInspectorControl owns a CalloutView anchored to a point within a host view. It executes asynchronous feature queries via a QueryCallback, coalesces/throttles updates for animated timelines, and formats results using layer-specific or default presenters.

Usage

  1. Create an instance with a hostView and query callback.

  2. Call show(point, coordinate) to display and populate the callout.

  3. Call update() as the underlying data animates or changes to refresh values.

  4. Call hide() to remove the callout.

Constructors

Link copied to clipboard
constructor(mapController: MapController)

Functions

Link copied to clipboard
fun hide()

Hides and removes the callout and cancels any in-flight query.

Link copied to clipboard
fun move(point: ScreenCoordinate)

Repositions the callout to a new point within the host view bounds.

Link copied to clipboard

Removes any custom presentation associated with a layer identifier.

Link copied to clipboard
fun setPresentation(layerId: String, presentation: Presentation)

Registers a presentation for a layer identifier.

Link copied to clipboard
fun show(point: ScreenCoordinate, coordinate: Point)

Shows (or updates) the callout at a screen point for a geographic coordinate. executes an async query to populate its contents.

Link copied to clipboard
fun update()

Refreshes callout contents for the current targetCoordinate.