Class: baiduTileLayer

L.supermap.baiduTileLayer

The Baidu tile layer class.

L.supermap.baiduTileLayer(url, options)

BaiduTileLayer.js, line 4
Name Type Default Description
url string 'http://online{num}.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles={styles}&udt=20150815&scaler=1' optional

The URL of Baidu tiles.

options Object

The optional tile parameters.

Name Type Default Description
minZoom number 3 optional

The minimum zoom level.

maxZoom number 19 optional

The maximum zoom level.

bounds L.LatLngBounds L.latLngBounds([-85.0511287798, -180],[85.0511287798, 180]) optional

The display range.

retina L.Browser L.Browser.retina optional

The resolution of the browser.

tileProxy string optional

Enable managed addresses.

attribution string 'Map Data © 2017 Baidu - GS(2016)2089号 - Data © 长地万方' optional

The copyright information.

Extends

Members

urlstring

The URL of Baidu tiles.

Methods

getTileUrl(coords){string}

BaiduTileLayer.js, line 45

Get URL of the tile.

Name Type Description
coords Object

Ranks number.

Returns:
Type Description
string The URL of the tile.