Skip to content

Commit

Permalink
feat(store): add a clear method to the selection startegy
Browse files Browse the repository at this point in the history
  • Loading branch information
cbourget committed May 10, 2019
1 parent 532b3e6 commit 79607c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/geo/src/lib/feature/shared/strategies/selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ export class FeatureStoreSelectionStrategy extends FeatureStoreStrategy {
});
}

clear() {
this.overlayStore.source.ol.clear();
this.overlayStore.clear();
}

/**
* Add the overlay layer, setup the map click lsitener and
* start watching for stores selection
Expand Down

0 comments on commit 79607c6

Please sign in to comment.