Thanks for responding. This problem happens to more than basemaps. Here's my use case:
My Maui App has several basemaps. The user creates a small extent and clicks Download.
In the code, I need to download all the basemaps, plus other data such as hillshade and contours, as well as a mobile map package.
Then, once they go offline with the data, I layer all the data again based on whatever basemap is active. They can change basemaps at any time.
In this scenario, I need transparency set for layers on top as I need to be able to see layers on bottom (setting Opacity for Vector Tile Packages does not help).
In this scenario, I download the Imagery and the Vector Tile Package separately so I can store the .vtpk and .tpkx on the users device.
For imagery, code is as follows:
ExportTileCacheParameters? parameters = new()
{
AreaOfInterest = geom,
CompressionQuality = (double)compQual //I extracted this from the Service above
};
foreach (var lvl in levels)
{
parameters.LevelIds.Add(Int32.Parse(lvl));
}
ExportTileCacheTask offlineTask = await ExportTileCacheTask.CreateAsync(uri);
Place this in a job and push results to Imagery.tpkx file
For Vector Tiles, code is as follows:
ExportVectorTilesTask exportTask = await ExportVectorTilesTask.CreateAsync(lyrSource); //I've also tried with PortalItem. Same results
ExportVectorTilesParameters vecParam = await exportTask.CreateDefaultExportVectorTilesParametersAsync(envelope, mapScale);
vecParam.EsriVectorTilesDownloadOption = EsriVectorTilesDownloadOption.UseReducedFontsService;
vecParam.EsriVectorTilesDownloadOption = EsriVectorTilesDownloadOption.UseReducedFontsService; //Ive tried with UseOriginalService as well
ExportVectorTilesJob? bmapVTJob = exportTask.ExportVectorTiles(vecParam, <vectorTileCachepath>, <path to resources>));
Run job and place in appropriate ImageryHybrid.vtpk file.
For this case, the resulting Vector Tile Package (ImageryHybrid.vtpk) always has a basemap behind it (image above) and does NOT allow me to overlay it on top of the Imagery.tpk.
Note:
I have the exact same problem when I try to download a Hillshade.vtpk file. However, if I download a Contours.vtpk file, it works great. FYI: I'm able to obtain all my .vtpk files and view them in ArcGIS Pro, so I can see the background issue there as well.
Note2:
In ArcGIS Pro, if I use the "Download Map" option the resulting Hybrid Reference layer looks great after it's downloaded, but when I use Windows Explorer to make a copy, the copy shows a background similar to what I showed in the image above.
Based on your #3 question above, I have the same problems when I run in Windows and Android (emulator and real devices). Have not setup iOS yet.
Thoughts?