Hi,
We have application with offline content (vtpk). We use vptk packages as basemap. It works fine on Android but on iOS doesn't (blank screen). I have tried different vector tile packages, but only with one of them I succeeded. It was in different coordinate system (WGS 1984 Web Mercator) then our application packages. Our application packages spatial reference wkid is 3346. Another one difference is that working package was created later and maybe with different software versions because we migrate application from AppStudio code to ArcGIS Maps for .NET MAUI. Code below:
ArcGISVectorTiledLayer layer = new ArcGISVectorTiledLayer(new Uri(tileCachePath));
_map = new Map(SpatialReference.Create(3346))
{
Basemap = new Basemap(layer),
MinScale = 8000000,
MaxScale = 1200
};
_map.LoadStatusChanged += OnMapsLoadStatusChanged;
private void OnMapsLoadStatusChanged(object sender, LoadStatusEventArgs e)
{
switch(e.Status)
{
case LoadStatus.Loading:
Logger.Debug($"Map's load status : {e.Status}");
break;
case LoadStatus.Loaded:
_map.InitialViewpoint = new Viewpoint(new MapPoint(499629.435, 6124677.283, SpatialReference.Create(3346)), 7500000);
break;
case LoadStatus.FailedToLoad:
Logger.Error($"Map's load status : {e.Status}");
break;
}
}
Map and viewpoint spatial reference were changed depending on vtpk source.
Any help would be appreciated.