![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mapbox
---果子---
这个作者很懒,什么都没留下…
展开
-
mapboxjl手写popup弹框,并且支持缩放地图,拖拽地图是弹框的位置实时变化
地图事件 this.map.on("click", this.mapClick); this.map.on("moveend", this.mapMoveend); 点击事件方法 async mapClick(e) { this.lngLat = e.lngLat; // 获取点击地图时的图层及其对应的properties let features = this.gdeChart.chartInstance.map.queryRenderedFeatures原创 2021-05-21 14:06:49 · 740 阅读 · 0 评论 -
mapbox给地图设置fitbounds不起作用
给地图设置fitbounds不起作用的原因原来是地图没有加载完 // 地图加载完成事件 this.map.on('load', () => { this.map.fitBounds(this.mapBounds) })原创 2021-04-27 17:22:54 · 817 阅读 · 0 评论