export default {
  name: '添加自定义图层',
  codeHtml: `
    参考 LayerMap
  `,
  apiHtml: [],
  apiString: `
layerName: ['sunhe']

newLayer: [{
  name: 'sunhe',
  type: 'WebMapTileServiceImageryProvider',
  url: 'http://t0.tianditu.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={TileCol}&TILEROW={TileRow}&TILEMATRIX={TileMatrix}',
  maximumLevel: 18,
  tileMatrixSetID: 'GoogleMapsCompatible'
}]
  `,
  action(map) {
    map.customLayer()
  }
}
