Select to view content in your preferred language

Offline package copied from app data folder is not visible for ArcGISRuntimeEnvironment

445
1
05-02-2023 06:59 AM
GKmieliauskas
Esri Regular Contributor

Hi,

I would like to add default offline map from my application Data folder. I copy vtpk and mapinfos.json file from application Data folder to .../ArcGIS/AppStudio/Cache/applicationid/offlinecache folder. Data exists in folder but then I try to create object with ArcGISRuntimeEnvironment (code below), it throws message that my vtpk file was not found.

var vectorTiledLayer = ArcGISRuntimeEnvironment.createObject("ArcGISVectorTiledLayer", {url: vtpkUrl});

When I close application and start it second time. Then ArcGISRuntimeEnvironment creates vector tiled layer object.

I have similar behavior like in that thread: https://community.esri.com/t5/qt-maps-sdk-questions/relative-path-of-geodatabase-qml/td-p/295112 

How can I refresh ArcGISRuntimeEnvironment singleton?

0 Kudos
1 Reply
AdityaAllamraju1
Esri Contributor

Hi @GKmieliauskas ,
Thanks for reaching out and having patience. This question is specific to ArcGIS Runtime; so I think @LucasDanzinger is the best person to answer your questions.