The documentation for "Assign layer IDs " instructs the administrator on how to set up static layer IDs:
https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/assign-layer-ids.htm
Unfortunately, even when that feature is enabled, this behavior does not extend to the OGC "WMS" layer IDs. These numeric layer IDs continue to be automatically assigned based on each layer's order in the group, so they sometimes change when new layers are inserted above them in the stack order. This forces all WMS users to update their client code and websites to use the new numeric layer ID after an update is published, which is undesirable. For this reason, it would be really great if the same static, unique layer IDs were used by all services that ArcGIS publishes, including the WMS service. I am one of the end users of the WMS, not an administrator myself.
<Layer queryable="1">
<Name>25</Name>
<Title>State Land Use Districts</Title>
WMS services have the option to "Use layer names from the map document" that provide a static name for a layer. This id would remain static as long as the layer name isn't modified.
Documentation: https://enterprise.arcgis.com/en/server/latest/publish-services/windows/available-wms-service-proper...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.