Skip to content

Commit

Permalink
Fix mmgisAPI featuresContained when a failed to load layer = null
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Jul 17, 2023
1 parent 843475d commit 48bcefb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/essence/mmgisAPI/mmgisAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ var mmgisAPI_ = {

// For all MMGIS layers
for (let key in L_.layers.layer) {
if (L_.layers.layer[key] === false || L_.layers.layer[key] == null)
continue

if (L_.layers.layer[key].hasOwnProperty('_layers')) {
// For normal layers
const foundFeatures = findFeaturesInLayer(
Expand Down

0 comments on commit 48bcefb

Please sign in to comment.