Skip to content

Interface: TerrainTileSource ​

Defined in: autk-map/src/terrain-tile-source.ts:12

An elevation tile source as written by an application.

Extends ​

Properties ​

attribution ​

attribution: TileAttribution

Defined in: autk-map/src/tile-source.ts:31

Credit shown on the map. Required: providers' terms ask for it. Give a string, a { text, url } entry that links to the provider's page, or a list of either. Links must be http or https URLs.

Inherited from ​

TileSource.attribution


encoding ​

encoding: DemEncoding

Defined in: autk-map/src/terrain-tile-source.ts:14

How heights are packed into the tile colors.


maxZoom? ​

optional maxZoom?: number

Defined in: autk-map/src/tile-source.ts:35

Largest zoom level the source serves. Defaults to 19.

Inherited from ​

TileSource.maxZoom


minZoom? ​

optional minZoom?: number

Defined in: autk-map/src/tile-source.ts:33

Smallest zoom level the source serves. Defaults to 0.

Inherited from ​

TileSource.minZoom


subdomains? ​

optional subdomains?: string | readonly string[]

Defined in: autk-map/src/tile-source.ts:42

Subdomains substituted for {s}, as a string of one-letter names or an array. Required when the template uses {s}.

Inherited from ​

TileSource.subdomains


theme? ​

optional theme?: TileTheme

Defined in: autk-map/src/tile-source.ts:25

Client-side image treatment. Changes colors and contrast; retains baked-in labels and geometry.

Inherited from ​

TileSource.theme


tileSize? ​

optional tileSize?: number

Defined in: autk-map/src/tile-source.ts:37

Tile edge in pixels. Defaults to 256.

Inherited from ​

TileSource.tileSize


urlTemplate ​

urlTemplate: string

Defined in: autk-map/src/tile-source.ts:23

URL with {z}, {x} and {y} (or {reverseY}) placeholders, and optionally {s} for a subdomain.

Inherited from ​

TileSource.urlTemplate

Released under the MIT License.