Skip to content

Interface: TileSource ​

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

A web map tile source as written by an application.

Extended by ​

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.


maxZoom? ​

optional maxZoom?: number

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

Largest zoom level the source serves. Defaults to 19.


minZoom? ​

optional minZoom?: number

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

Smallest zoom level the source serves. Defaults to 0.


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


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.


tileSize? ​

optional tileSize?: number

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

Tile edge in pixels. Defaults to 256.


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.

Released under the MIT License.