使用vue引入maptalks地图及聚合效果的实现
1、安装maptalks.js npm install maptalks –save 2、安装聚合mapkercluster npm install maptalks.markercluster 3、vue页面引入 import * as maptalks from ‘maptalks’ import {ClusterLayer} from ‘maptalks.markercluster’ 4、初始化地图并添加聚合 mounted() { let that = this //--0--//地图对象的初始化 this.map = new maptalks.Map('map'
用户评论