Ignore Layers for spatial filter in Query Widget

835
2
05-31-2018 05:40 AM
AnninaHirschi_Wyss1
Occasional Contributor III

Hi there,

I just found out, how to exclude specific "spatial relationship layers" from the list in the Query widget.

.

You can add an array of Layer ids to the following variable in "PATH TO YOURAPP#\widgets\Query\TaskSettings.js" currently on line 459

var ignoredFeaturelayerIds = [];

Here's how to get the layer ids: How do I get the ID of a web map layer? 

It's a bit tedious to list them all, especially in case you only want to display one layer and your map contains dozens.

So I was wondering if there is an "easy" solution to:

a) set a default layer to be displayed automatically when "Only return features that have a spatial relationship with features in another layer" is selected

b) instead of ignoring, adding layers

What do you think, would this be worth an enhancement request ?

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Annina,

   Yes I would like to see that.

0 Kudos
AnninaHirschi_Wyss1
Occasional Contributor III

Thanks, Robert, your voice is worth hundreds .

I created an idea: https://community.esri.com/ideas/15086 

Thanks all for up votes and comments!

0 Kudos