ol-ext
ol-ext copied to clipboard
Possible deprecated feature in use: Event.Path
Hi, a simple question: I am using ol-ext for a project of mine. However, when I use functions like the one below:
map.on('singleclick', function (event) {
const name = map.forEachFeatureAtPixel(event.pixel, function (feature) {
return feature.get('name');
});
});
The following warning appears in my browser's console:
Is it safe to keep using such method? If not, will it be corrected anytime soon?
The code you shared doesn't use ol-ext... It's a pure Openlayers function. What version of Openlayers are you using?
Hi, thank you for you kind reply, and my apologize for the mistake. The OpenLayers version I am using is the latest, v6.15.1, as contained in this CDN: cdn
This message appears among the issues in Google Chrome's console...