AppStudio 5.1 - Problem accessing downloaded map areas with Map Viewer template

317
1
08-16-2021 06:42 AM
BurnsideAdmin
New Contributor II

Hello community,

I'm using AppStudio 5.1 and the 5.1 Map Viewer template connected to a secured ArcGIS Online map that has 2 map areas. These map areas download fine but fail to load when trying to access them from the gallery view. Digging in with the debugger reveals an error message "File not found." ,"The path to the Mobile map package is empty.". The file path that the debugger shows does exist on my PC and the files that the Map Viewer is trying to access are there.


I'm developing in Windows.
All worked fine with AppStudio 5.0 and Map Viewer template 5.0.
Anyone else have this problem? Any ideas?

Thanks.

0 Kudos
1 Reply
ErwinSoekianto
Esri Regular Contributor

@BurnsideAdmin 

 

Thank you for reaching out. I can reproduce this issue and it looks like a bug in MapViewer template version 5.1. Can you help us log bug via Esri Technical Support?

 

Here is how to fix this, please add this one line code in MapViewer/views/MapPage.qml around line 8167 inside function openMapArea()           

            mmpk.path = AppFramework.resolvedPathUrl(filePath);

 

Screen Shot 2021-08-25 at 10.21.58 AM.png

 

Thank you,

Erwin. 

0 Kudos