Class: TiandituTileLayer

TiandituTileLayer

天地图图层类。

L.KQMap.Mapping.TiandituTileLayer(options)

leaflet/mapping/TiandituTileLayer.js, line 10
Name Type Description
options Object

图层参数。

Name Type Default Description
layerType string 'vec' 可选

图层类型。(vec:矢量,cva:中文矢量注记,eva:英文矢量注记,img:影像,cia:中文影像注记,eia:英文影像注记,ter:地形,cta:地形注记)

minZoom number 1 可选

最小比例尺。

maxZoom number 18 可选

最大比例尺。

isDegree number false 可选

是否是经纬度。

key string '174705aebfe31b79b3587279e211cb9a' 可选

map key。

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

子域名数组。

Example
// 初始化地图
 var map = L.map('map', {
    center: [31.59, 120.29],
    zoom: 8,
  });

 // 添加天地图矢量图层
 L.kqmap.mapping.tiandituTileLayer({
      layerType: "vec",
  }).addTo(map);

Extends