Skip to content

Commit

Permalink
Consider layers filtration
Browse files Browse the repository at this point in the history
  • Loading branch information
become-iron committed Jun 11, 2020
1 parent 3d474de commit 69b0123
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/component/select-interaction/interaction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@
feature = undefined
forEach(this.$map.getLayers().getArray(), layer => {
if (this.layerFilter && !this.layerFilter(layer)) {
return
}
const source = layer.getSource()
if (source && isFunction(source.getFeatureById)) {
feature = source.getFeatureById(featureId)
Expand Down

0 comments on commit 69b0123

Please sign in to comment.