Type Alias ElevationAtOptions

type ElevationAtOptions = {
    apiKey?: string;
    computeOn?: "client" | "server";
    zoom?: number;
}
Index

Properties

apiKey?: string

Custom MapTiler Cloud API key to use instead of the one in global config

computeOn?: "client" | "server"

If set to client, the elevation will be computed from the terrain tiles on the client side. If set to server, the elevation will be obtained from the MapTiler Elevation API. Defaults to server for at, batch, and client for fromLineString, fromMultiLineString (in browser envs).

zoom?: number

Zoom level to use for the terrain tileset in client mode. If not provided, the highest zoom level will be used.

Was this helpful?

Client JS
Reference
ElevationAtOptions