Select to view content in your preferred language

Not able to load tpks without internet

2911
1
06-11-2013 02:59 AM
VIPINDOBHAL
New Contributor
Hi,
I am using ArcGIS Runtime SDK for Qt 10.2 and have developed a demo application in which I have loaded a ArcGISLocalTiledLayer in the map. But the issue is without internet connection it is not displaying the map.  The moment I am adding a ArcGISTiledMapServiceLayer, map is displayed. Is it like that.

Please tell me how to display a tiff or shape file in the viewer with SDK.
0 Kudos
1 Reply
JeanneTrieu
Deactivated User
Hi,

thanks for your feedbacks. Can you please send us a snippet of your code so I can take a look at the issue?  You should be able to load a ArcGISLocalTiledLayer without internet. If you have installed the ArcGIS Runtime SDK for Qt 10.2 Beta, you should have a few tpks that comes with our SDK. Can you please try to load a tpk from the Qt's SDK as shown below:

QString path = EsriRuntimeQt::ArcGISRuntime::installDirectory();
path.append("/sdk/samples/data");
QDir dataDir(path); // using QDir to convert to correct file separator
QString pathSampleData = dataDir.path() + QDir::separator();

QString tiledBaseMapLayer = pathSampleData + "tpks" + QDir::separator() + "Topographic.tpk";
EsriRuntimeQt::ArcGISLocalTiledLayer tiledLayer(tiledBaseMapLayer);
map->addLayer(tiledLayer);

In the beta release, ArcGIS Runtime SDK for Qt does not support tiff and shape files.

Thanks,
0 Kudos