Hei
In a test map application opening a vector tile server and hope to get helpt to resolve these issues:
- Is the the resolution of the map display automatic - only controlled by the server ?
- Is there a possible approach to check why the map information turns white when zooming
The map is only visible when zooming far out - and then the display is very pixelated
When zooming in it turns white:
Zoom a little and then map detailed information is invisible
Hi,
Check your ArcGISVectorTiledLayer MinScale and MaxScale. Your zoomed map scale must be between MinScale and MaxScale of layer. You can found values in VectorTileSourceInfo.
Thank you for the quick replay. I made a test opening the ArcGISVectorTiledLayer adding MinScale and MaxScale properties - still the map data is lacking. I shall check returned when the layer has been loaded to check if my connection has limitated ascess to the server data.
I have now tested further:
Initialiating both the ArcGISVectorTiledLayer and the Map, setting the MinScale and MaxScale properties.
I want to test vector tile map display response from a map source containing relvant map details.
For testing, I compare the ArcGIS gray-level URL:
https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/resources/styles
with the GeoData company server URL (an ArcGIS retailer in Norway).
The gray-level map from ArcGIS lacks sufficient detail for evaluating display performance.
However, using the vector til server at Geodata no details appear in the map , while it displays correctly on ArcGIS's test gray-level server.
The ArcGIS URL works as expected, but the GeoData URL only shows a blank white area.
To investigate, I performed a JSON dump comparison after loading vector tile layers from both servers.
The DefaultStyleUri contents are identical, and most JSON data, including level of detail settings, appear similar.
The main difference is that an attribute item is present in the ArcGIS server response but missing in the GeoData response.
Have you any idea how to further investigate why the vector tile data does not appear in the map from GeoData?
If I sende you the GeoData server url can you debug it ?
Regards
Gunnar Gisleberg
You could subscribe for map scale property changing event in MainPage constructor and check these values
mapView.PropertyChanged += (o, e) =>
{
if (e.PropertyName == nameof(mapView.MapScale))
{
var currentScale = mapView.MapScale;
// depends on your map layers structure
ArcGISVectorTiledLayer layer = mapView.Map.Basemap.BaseLayers.OfType<ArcGISVectorTiledLayer>().FirstOrDefault();
var vectorTileSourceInfo = layer.SourceInfo;
var layerMinScale = vectorTileSourceInfo.MinScale;
var layerMaxScale = vectorTileSourceInfo.MaxScale;
// To view layer correctly currectScale mus be <= layerMinScale and >= layerMaxScale
}
};