Skip to content

Commit

Permalink
fix(FeatureToolTip): avoid undefined layer on move.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed May 4, 2021
1 parent f44c29e commit 6ae7305
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/js/plugins/FeatureToolTip.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ var FeatureToolTip = (function _() {
}

layer = layers[layersId.indexOf(layerId)];
if (!layer) {
continue;
}
if (typeof layer.options.filterGeometries == 'function') {
features[layerId] = layer.options.filterGeometries(features[layerId], layer.layer) || [];
}
Expand Down

0 comments on commit 6ae7305

Please sign in to comment.