Class: wmtsLayer

L.supermap.wmtsLayer

The WMTS layer class.

L.supermap.wmtsLayer(url, options)

TileLayer.WMTS.js, line 4
Name Type Description
url string

The url of WMTS layer

options Object

The optinal parameters of WMTS layer.

Name Type Default Description
layer string

The layer that needs to be displayed.

tileProxy string optional

Enable managed addresses.

style Object optional

Layer style.

format string 'image/png' optional

Wmts image format ('image/png' for layers with transparency).

tileSize number | L.Point 256 optional

Tile size.

requestEncoding string 'KVP' optional

KVP or REST request method.

tilematrixSet Object optional

Tile matrix set.

version string '1.0.0' optional

version.

attribution string optional

The copyright information.

Extends

Methods

getTileUrl(coords){string}

TileLayer.WMTS.js, line 61

Get the URL of the tile according to ranks number.

Name Type Description
coords Object

Ranks number.

Returns:
Type Description
string The URL of the tile.