openlayers 鼠标移入要素改变手指符号
1 年前
let map = new ol.Map()
map.on('pointermove',(e)=>{
let pixel = map.getEventPixel(e.originalEvent)
let feature = map.forEachFeatureAtPixel(pixel,(feature)=>{
return feature
// 线、面要素不做鼠标移入样式修改
if(feature == undefined || feature.getGeometry().getType() !='Point'){