Skip to content

卷帘分析

该框架支持卷帘分析

代码实例

vue
<script setup lang="ts">
import { showCode, closeCode } from '@/utils/store'
import { onMounted, onBeforeUnmount, onBeforeMount } from 'vue'
onBeforeMount(() => {
  hideBar()
})
const LarkExplorer = window.LarkExplorer
let map: any
onMounted(() => {
  LarkExplorer.ready({
    baseUrl: './dist/resources/',
  }).then(initMap)
})

function initMap() {
  map = new LarkExplorer.Map('map')
  console.log(map)
}
// 卷帘开启,关闭
const open = (bool: boolean) => {
  map.SpecialAnalysis.Split.enabled = bool
}
</script>

运行效果 更多示例