Class: tiandituTileLayer

L.supermap.tiandituTileLayer

The Tianditu tile layer class

L.supermap.tiandituTileLayer(options)

TiandituTileLayer.js, line 8
Name Type Description
options Object

The optional parameters of the tile layer.

Name Type Default Description
url string 'http://t{s}.tianditu.com/{layer}_{proj}/wmts?' optional

The url of the service.

layerType string 'vec' optional

The layer type (vec: vector layer, img: image layer, ter: terrain layer).

style string 'default' optional

The layer style.

format string 'tiles' optional

The format.

isLabel boolean false optional

Whether to use label layer.

subdomains Array.<number> [0, 1, 2, 3, 4, 5, 6, 7] optional

The subdomains array.

attribution string 'Map Data <a href='http://www.tianditu.com' target='_blank'><img style='background-color:transparent;bottom:2px;opacity:1;' src='http://api.tianditu.com/img/map/logo.png' width='53px' height='22px' opacity='0'></a>' optional

The copyright information.

Extends

Methods

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