QueryGeometry

sealed class QueryGeometry

A screen- or map-space geometry used to query rendered features.

Use this to describe where the hit-test should occur. The concrete meaning of each case is engine-agnostic:

  • Coordinate — A geographic coordinate in WGS84 (lat/lon). The renderer is responsible for projecting this to screen space and applying an appropriate tolerance for hit-testing at the current camera/zoom.

  • Point — A point in screen points relative to the map view's bounds.

  • Rect — A screen-space rectangle (in points) that selects features intersecting the given area.

Inheritors

Types

Link copied to clipboard
data class Coordinate(val value: Point) : QueryGeometry
Link copied to clipboard
data class Point(val value: ScreenCoordinate) : QueryGeometry
Link copied to clipboard
data class Rect(val value: ScreenRect) : QueryGeometry