Hello,
I’m working in ArcGIS Enterprise Portal 11.3 and I’m trying to add a single layer from a published map service into Map Viewer.
When I add the entire map service, the display filters I set up in ArcGIS Pro carry through as expected. However, when I add just one layer from that same service, the display filters do not appear to be applied.
My goal is to only load the one layer (not the full service) but still have it respect the display filters I defined in ArcGIS Pro.
Is there a way to make an individual layer from a map service honour its display filters in Map Viewer? Or do I need to publish it differently to achieve this?
Thanks in advance for any guidance.
Hi @MapsAreFun, did you publish your layers as a map service? If you did, your filter will only be honoured when accessing that map service. I would publish that filtered layer as its own feature layer or map service.
Hope that helps!
I have a hack-y method for ya using map viewer classic:
Add a new 'URL' item to Portal, and use the REST url for the whole map service, name it as the (single) layer you want to be from within the map service.
Open that new Portal item (it's just a reference to your map service) in map viewer classic.
In the Contents list, you can expand the map service group, and 'remove' and sub-layers you don't want, leaving you finally with only the one you care about. Click the ... under the parent group and 'Save'
Viola, you now have a single-layer Portal item (kinda) but still retains the parent map service properties.