tombatossals / angular-openlayers-directive

AngularJS directive to embed an interact with maps managed by the OpenLayers library
http://tombatossals.github.io/angular-openlayers-directive/
MIT License
282 stars 183 forks source link

Map Object? #361

Closed cameronstiffler closed 7 years ago

cameronstiffler commented 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); });

cameronstiffler commented 7 years ago

This thread was very helpful https://github.com/tombatossals/angular-openlayers-directive/issues/83