---
title: "ElevationAtOptions | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> 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;  
}

##### Index

### Properties[](#properties)

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

## Properties[](#properties-1)

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

apiKey?: string

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

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

### `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.
