跳到主要内容

flywave-mapview.elevationprovider.getheight

Home > @flywave/flywave-mapview > ElevationProvider > getHeight

ElevationProvider.getHeight() method

Get elevation for a given geo point.

Signature:

getHeight(geoPoint: GeoCoordinates, level?: number): number | undefined;

Parameters

Parameter

Type

Description

geoPoint

GeoCoordinates

geo position to query height for.

level

number

(Optional) Optional data level that should be used for getting the elevation. If undefined, the view's visible tile containing the point will be used.

Returns:



number \| undefined

The height at geoPoint or undefined if no tile was found that covers the geoPoint.