pickFeatures

suspend fun pickFeatures(x: Double, y: Double, level: Int, longitude: Double, latitude: Double): ReadonlyArray<ImageryLayerFeatureInfo>?(source)

Asynchronously determines what features, if any, are located at a given longitude and latitude within a tile.

Return

A promise for the picked features that will resolve when the asynchronous picking completes. The resolved value is an array of ImageryLayerFeatureInfo instances. The array may be empty if no features are found at the given location.

Parameters

x

The tile X coordinate.

y

The tile Y coordinate.

level

The tile level.

longitude

The longitude at which to pick features.

latitude

The latitude at which to pick features.

See also