Select to view content in your preferred language

Access WebMap Metadata via Arcade

300
3
02-29-2024 05:22 AM
Status: Open
RichardHowe
Frequent Contributor

It would be extremely useful to be able to access webmap information (title, itemID etc.) via arcade, in much the same way as you can access layer information.

e.g. via the GetFeatureSetInfo function

This would allow data and attributes within the map to utilise this information.

I cannot currently see a way to do so.

Use case from one of my users was asking why they needed to enter a Project number in a form when the map title already contained it, which I thought was a very fair question!

3 Comments
RichardHowe

Still struggling with this.

Any advice @BernSzukalski 

BernSzukalski

Sorry for a late response, just back from travel... I can't think of way to get the map or layer ID directly in Arcade but will check for you.

Were it me, I might cheat and use an Arcade expression to set the project number in the map then just use that expression wherever you need to retrieve the project number (e.g., in text elements, pop-up title, etc). 

I am thinking the layer ID isn't specifically what you are after, rather some other information about the layer.

I'd suggest posting these as ideas in the ArcGIS Online ideas section.

RichardHowe

Thanks!