Appearance
initGeojson
▸ initGeojson(options
): void
需要与 geojson 内方法一起使用,用于修改请求域名和数据缓存时间等
与 geojsonPlugin 二选一即可,默认配置为 {host: 'https://gdftu-static.customer.minapp.com', cacheTime: 30 * 60}
参数
Name | Type |
---|---|
options | GeojsonInitOptions |
返回值
void
示例
vue
<script setup>
onLaunch(() => {
initGeojson({
host: 'https://gdftu-static.customer.minapp.com',
cacheTime: 30 * 60,
})
})
</script>