openlayers地图单击事件
// moveend 监听图层放大缩小事件// pointermove 鼠标移动事件// singleclick 单击事件this.map.on("singleclick", (e) =>{ // console.log(e); var feature = this.map.forEachFeatureAtPixel( e.pixel, (feature, layer) => { return featu
原创
2021-07-21 15:44:03 ·
1292 阅读 ·
2 评论