Hello,
Is it possible to access features from another layer in the same ArcGIS Server map service using Arcade? The map service layers were added to the web map all together and not individually. I'm thinking no since no global variables are available.
Brandon
I think it has to do with it being a MapServer? Usually if you add your layer to the map using its layer ID, it will behave like a FeatureServer item.
Try adding the Zoning layer using its URL, https://arcgis.gis.lacounty.gov/arcgis/rest/services/DRP/ZNET_Public/MapServer/4
With that in the map, the expression builder should have access to the usual globals. Seems to work over here!
It depends on what you're trying to do. Some profiles, like Popup, give you access to the $map profile variable, while Attribute Rules gives you access to the $datastore variable.
Where are you trying to implement this? If they're all in the same service, you ought to be able to use the global $datastore to access the other layers, as in the function FeatureSetByName.
Hi Josh. This is for a popup for a layer in the service. The $datastore option returned an error of not defined.
The service is public https://arcgis.gis.lacounty.gov/arcgis/rest/services/DRP/ZNET_Public/MapServer
I was trying to access the Zoning Sp Category layer from the Zoning layer.
Hi Ken. I tried $datastore prior to posting my issue and got an error saying it wasn't defined.
I'm using the classic viewer also if that's a factor. This web map is being used in the old web appbuilder still.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.