Select to view content in your preferred language

Reducing .mmpk size - UniqueValue Renderer

281
5
Jump to solution
3 weeks ago
mmoosbac94
Emerging Contributor

Hello everyone,

We are currently facing an issue with reducing the size of an MMPK.

According to the documentation (https://developers.arcgis.com/web-map-specification/objects/uniqueValueRenderer/), the uniqueValueInfos[] property is deprecated and may be removed in the future. Our current .mmpk file contains both uniqueValueInfos[] and uniqueValueGroups[].

We attempted to remove uniqueValueInfos[], following the documentation, in order to reduce the size of the MMPK while preserving all symbology and data. However, when testing with ArcGIS Swift SDK versions 100.15 and 200.x, we found that removing uniqueValueInfos[] causes symbology to be lost and the data to appear altered.

The .mmpk was created using ArcGIS Pro 3.4.

Does anyone know whether a newer version (e.g., ArcGIS Pro 3.5) or a specific version combination is required to safely remove uniqueValueInfos[] without affecting symbology and data? Or could someone explain what the documentation means in this context?


Thanks!
Marvin

0 Kudos
1 Solution

Accepted Solutions
Ting
by Esri Regular Contributor
Esri Regular Contributor

No unfortunately, uniqueValueGroups is not available in 300.0. (300.0 is now live btw)

Owen who responded above is aware of your need, and would plan accordingly.

View solution in original post

0 Kudos
5 Replies
odeng
by
New Contributor

Hello Marvin!

uniqueValueGroups is currently not supported for Native SDKs. Please try removing uniqueValueGroups  instead of uniqueValueInfos to reduce the file size. uniqueValueGroups may be supported in the future releases.

Ting
by Esri Regular Contributor
Esri Regular Contributor

Hi Marvin, uniqueValueGroups from webmap spec isn't supported by the Maps SDK yet. We are currently working on supporting it.

mmoosbac94
Emerging Contributor

Hey!

Thanks for your quick reply and that information! Do you already know if it will be supported in the new Swift 300.0 SDK version?

0 Kudos
Ting
by Esri Regular Contributor
Esri Regular Contributor

No unfortunately, uniqueValueGroups is not available in 300.0. (300.0 is now live btw)

Owen who responded above is aware of your need, and would plan accordingly.

0 Kudos
mmoosbac94
Emerging Contributor

Okay, thanks for that! 

0 Kudos