Skip to content

地图四至范围

框架支持获取场景边界四至坐标

说明

INFO

四至范围(west, south, east, north)

代码实例

vue3 + ts

ts
let map: any
LarkExplorer.ready({
    baseUrl: './dist/resources/',
  }).then(initMap)

function initMap() {
  // 默认谷歌影像地图
  const baseImagery = LarkExplorer.BaseLayer.DefaultTdtImg
  map = new LarkExplorer.Map('map', baseImagery)
}

const val = ref('undefined')
const update = () => {
  val.value = map.Navigation.viewExtent
}

运行效果 更多示例