Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在用户点击的点周围创建一个扇区。我该怎么做?
我可以创建一个“圆圈”类型的图层,用于将数据显示为圆圈,但如何获取扇区
您需要创建一个map.on('click')事件:https ://www.mapbox.com/mapbox-gl-js/api/#map.event:click
map.on('click')
例如
map.on('click', function (e) { ... });