sllvn / angular-mapbox

DEPRECATED - use tombatossals/angular-leaflet-directive instead
73 stars 29 forks source link

make featureLayer directive responsive to dom manipulation #23

Closed grantrobertsmith closed 9 years ago

grantrobertsmith commented 9 years ago

Before, when feature-layer elements were removed from the DOM - for example, as part of a filter update within an ng-repeat attributed element - the mapbox element would continue to display the features, even though they were no longer part of the DOM.

Now, the mapbox element (and associated controller scope) will reflect the removal of feature-layer elements from the DOM.

I believe this functionality is more intuitive for the person using feature-layer elements in their HTML files.

sllvn commented 9 years ago

Sorry for turnaround time. I agree: this makes more sense to remove feature layer elements from map as they are removed from DOM. Thanks much.