Constructor
new TdtImageryProvider(options)
- Source:
Example
var layer = new TdtImageryProvider({
type: "img",
projMode: "w",
key: "你的key",
minimumLevel: 4,
maximumLevel: 18
})
viewer.imageryLayers.addImageryProvider(layer);
Parameters:
Name |
Type |
Description |
options |
object
|
Properties
Name |
Type |
Default |
Description |
type |
string
|
img
|
底图类型 影像底图 img 矢量底图 vec 经纬度投影 c 墨卡托投影 w 默认 img 参考 http://lbs.tianditu.gov.cn/server/MapService.html |
projMode |
string
|
w
|
投影方式 经纬度投影 c 墨卡托投影 w 默认 w 参考 http://lbs.tianditu.gov.cn/server/MapService.html |
key |
string
|
|
天地图key 去官网申请 |
minimumLevel |
string
|
4
|
|
maximumLevel |
string
|
18
|
|
|