Get tags from metadata from the layer in a Mobile Map Package

236
2
02-09-2021 11:58 PM
CarstenAndersson
New Contributor III

I'm working on an app created in AppStudio (Qt Creator). The app is based on the MapViewer template which is able to use Mobile Map Packages (MMPK), and I want to be able to see the tags for each layer. It's possible to add tags on the layers in the MMPK, but I can't seem to figure out a way to read them in my code. I have a piece of code that iterates through all the layers, and I can see the layers tags by using the property tags on the ArcGISItem property, but since this is not an online layer I don't have that property on the offline layer. But as I wrote it's possible to add tags on the layers in the MMPK.

CarstenAndersson_0-1612948695738.png

The screenshot above shows a tag on the layer in the MMPK.

Any ideas would be greatly appreciated 🙂

 

0 Kudos
2 Replies
ErwinSoekianto
Esri Regular Contributor

@CarstenAndersson 

 

How about when you upload this MMPK to ArcGIS Online as an ArcGIS item, I think you can set a tag on the ArcGIS item, then read it from there? 

 

Erwin. 

0 Kudos
CarstenAndersson
New Contributor III

I want to be able to read the tags from the layers within the MMPK, not the MMPK itself. So I can read tags for each layer when I iterate through them when I open the MMPK in my QML app.

0 Kudos