RenderedQueryGeometry.fromList constructor

RenderedQueryGeometry.fromList(
  1. List<ScreenCoordinate> points
)

Query a screen area defined by a list of points.

On web, GL JS only accepts a point or an axis-aligned bounding box. The points are always reduced to their bounding box before querying. This also applies to a two-point list: it becomes a rectangle on web. On mobile, the native hit-test receives the points as given.

Implementation

factory RenderedQueryGeometry.fromList(List<ScreenCoordinate> points) =
    ScreenCoordinateListRenderedQueryGeometry;