Map fails to load a lokal TPK

1153
2
02-09-2017 09:04 AM
TerritoriumOnline
New Contributor

I'm not able to load a lokal TilePackage with the following code

...

property url dataPath: System.userHomePath + "/ArcGIS/Runtime/Data/"
...
        Map {
            id: map
Basemap {
                id: basemap
ArcGISTiledLayer {
                    id: basemapLayer
                    url: dataPath + "tpk/SanFrancisco.tpk"
                }
....

Is there something wrong or missing in the code above?

0 Kudos
2 Replies
TerritoriumOnline
New Contributor

    ArcGISTiledLayer {         TileCache {             path: dataPath + "tpk/SanFrancisco.tpk"        }     }

I got it!

Nevertheless my own TPK created with ArcMap 10.3 did not work!

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Yes, this is a known issue for now. You will have to create the TileCache object.

Can you elaborate on what you mean by it did not work? Does it not load, not display, display incorrectly?

0 Kudos