Select to view content in your preferred language

Problems to display vectortiles map from server- resolution and turning white

331
4
03-06-2025 05:41 AM
Labels (3)
GunnarGisleberg
Occasional Contributor

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:

GunnarGisleberg_0-1741266800861.png

Zoom a little and then map detailed information is invisible

GunnarGisleberg_0-1741268096683.png

 

0 Kudos
4 Replies
GKmieliauskas
Esri Regular Contributor

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.

0 Kudos
GunnarGisleberg
Occasional Contributor

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.

0 Kudos
GunnarGisleberg
Occasional Contributor

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.

GunnarGisleberg_0-1741671101794.png

 

The main difference is that an attribute item is present in the ArcGIS server response but missing in the GeoData response.

GunnarGisleberg_1-1741671242882.png

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

0 Kudos
GKmieliauskas
Esri Regular Contributor

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
    }
};




 

 

 

 

 

0 Kudos