public void TestVtpkJson() { var path = @"E:\Downloads\wh_district_slqp_WebUTM.vtpk"; var zipArchive = ZipFile.Open(path, ZipArchiveMode.Read); var entry = zipArchive.GetEntry(@"p12/root.json"); var stream = entry.Open(); var sr = new StreamReader(stream); var ts = ArcGISBundleFileHelper.GetTileSystemFromJson(sr.ReadToEnd()); sr.Close(); stream.Close(); }
private byte[] GetTileFromTpk(string filePath, int zoom, int tx, int ty, int tileSize = 256) { return(ArcGISBundleFileHelper.GetTileImage_VTPK(zoom, tx, ty, filePath)); }