tombatossals/angular-openlayers-directive

Map Object?

Closed this issue · 1 comments

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 #83