---
title: "ElevationAtOptions | Client js | Api client"
description: "Documentation for MapTiler Client"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Type Alias ElevationAtOptions

type ElevationAtOptions \= {  
    [apiKey](#apikey)?: string;  
    [computeOn](#computeon)?: "client" | "server";  
    [zoom](#zoom)?: number;  
}

-   Defined in [services/elevation.ts:16](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/elevation.ts#L16)

##### Index

### Properties

[apiKey?](#apikey) [computeOn?](#computeon) [zoom?](#zoom)

## Properties

### `Optional`apiKey[](#apikey)

apiKey?: string

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

-   Defined in [services/elevation.ts:20](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/elevation.ts#L20)

### `Optional`computeOn[](#computeon)

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).

-   Defined in [services/elevation.ts:33](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/elevation.ts#L33)

### `Optional`zoom[](#zoom)

zoom?: number

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

-   Defined in [services/elevation.ts:26](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/elevation.ts#L26)
