new BaiduTileLayer(url, options)
Usage
import { BaiduTileLayer } from '@supermapgis/iclient-leaflet';
new BaiduTileLayer(url, options);<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.BaiduTileLayer({paramsNames});
// 弃用的写法
L.supermap.baiduTileLayer(url, options);
</script>
leaflet/mapping/BaiduTileLayer.js, line 7
| Name | Type | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string | 'https://maponline{num}.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles={styles}&udt=20150815&scaler=1' |
可选
切片地址。 |
||||||||||||||||||||||||||||||||||||||||||||||||
options |
Object |
参数。
|
Extends
BaiduTileLayer
-> L.TileLayer
Members
-
urlstring
-
切片地址。
Methods
-
getTileUrl(coords){string}
leaflet/mapping/BaiduTileLayer.js, line 56 -
获取切片地址。
Name Type Description coordsObject 行列号。
Returns:
Type Description string 切片地址。