vue中高德地图限制拖拽地图的范围

vue中高德地图限制拖拽地图的范围,第1张

1、首先要在地图加载完成切中心点已确定的地方获取当前地图边界范围坐标
(我的map用的是全局map)

this.logMapBounds()
logMapBounds() {
   
   var bounds = this.map.getBounds();
     // 横纬竖经
     this.

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1297996.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-10
下一篇 2022-06-10

发表评论

登录后才能评论

评论列表(0条)

保存