Hi, we are trying to avoid making copies of data and use ArcGIS REST services from other departments in our webmaps and apps. Our client wants to only show some features within a certain extent for one of these layers.
The easiest to implement solution for this applies only to hosted feature layers:
Is there an easy solution to apply a spatial filter to a regular feature layer added to a webmap? If not, has anyone applied a quick hack to a Web AppBuilder (Dev Edition) app to apply a spatial filter as the map is loaded? Thanks in advance!
We are using Server/Portal 10.7.1
I think I've figured this out, although there might be a better spot to stick the hack.
In MapManager.js deep into the _show2DWebMap function: