本文主要分为二维地图和三维地图方法
一、首先是二维地图
1、首先要在地图加载完成切中心点已确定的地方获取当前地图边界范围坐标
(我的map用的是全局map)
this.logMapBounds()
logMapBounds() {
var bounds = this.map.getBounds();
// 横纬竖经
this.northa=bounds.northeast.toString()
this.southa=bounds.southwest.toString()
// console.log(bounds,this.northa,this.southa,'kikiki')
this.map.on('dragend', this.showInfoDragend