Closed cameronstiffler closed 7 years ago
I have some code from a regular javascript implementation of openlayers. I would like to implement this in my angular project. How do I access the map object in the angular version to use functions like forEachFeatureAtPixel.
Thanks.
mapObj.forEachFeatureAtPixel(event.pixel, function (feature, layer) { featureName = feature.get('features').map(function (value, idx) { return value.getId(); }); mapObj.addOverlay(overlay); });
This thread was very helpful https://github.com/tombatossals/angular-openlayers-directive/issues/83
I have some code from a regular javascript implementation of openlayers. I would like to implement this in my angular project. How do I access the map object in the angular version to use functions like forEachFeatureAtPixel.
Thanks.
mapObj.forEachFeatureAtPixel(event.pixel, function (feature, layer) { featureName = feature.get('features').map(function (value, idx) { return value.getId(); }); mapObj.addOverlay(overlay); });