Hi, we want to load a vtpk file and create a mobile map package from an smaller envelope of that vector tile package. My approach is:
File tpkFile = new File("C:\\Users\\admin\\Downloads\\map.vtpk");
TileCache cache = new TileCache(tpkFile.getAbsolutePath());
ArcGISTiledLayer tiledLayer = new ArcGISTiledLayer(cache);
ArcGISMap map = new ArcGISMap(new Basemap(tiledLayer));
OfflineMapTask offlineMapTask = new OfflineMapTask(map);
But the last line throws an IllegalArgumentException with the error message "onlineMap must be a web map". Can you provide help how to create a mobile map package from a vtpk file?