AnsweredAssumed Answered

How do I load offline TPK?

Question asked by MervynLotter on Jan 1, 2018
Latest reply on Jan 2, 2018 by MervynLotter

Hi there

 

I created a small TPK using the Tile Package Kreator. I then downloaded the AppStudio Tiled Layer sample app and tried to load my offline TPK - but I was unable to do so, not sure how to load it as sample shows how to load an online TPK.

 

The specific code to load URL was written as:

Map {
            id: map
            Basemap {
                // Nest an ArcGISVectorTiledLayer Layer in the Basemap
                ArcGISVectorTiledLayer {
                    url: "http://www.arcgis.com/home/item.html?id=dcbbba0edf094eaa81af19298b9c6247"
                }
         

How would I change this to reference a TPK stored locally? The TPK will for now reside in the app's Data folder. Ideally I would like a user to browse to a folder where the TPK is stored but I wont try and attempt to do so now.

 

Thank you.

 

Regards

Mervyn

Outcomes