|     Documentation    |     Premium Support

Map view does not redraw with TileType.SingleTile and MapResizeMode.PreserveScaleAndCenter

When I use a layer overlay of type SingleTile in a map view with PreserveScaleAndCenter mode, then the overlay is not shown when the window is created and after the window has been resized. Proper redrawing happens only when some other change is done (e.g., zoom/pan with the mouse).

    private void MapView_Loaded(object sender, RoutedEventArgs e)
        mapView.MapUnit = GeographyUnit.Meter;

        mapView.MapResizeMode = MapResizeMode.PreserveScaleAndCenter;

        var layersOverlay = new LayerOverlay();
        layersOverlay.TileType = TileType.SingleTile;

        var layer = new InMemoryFeatureLayer();
        layer.InternalFeatures.Add(new Feature(new PointShape(100, 100)));
        layer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = new PointStyle(PointSymbolType.Diamond, 50, GeoBrushes.Blue);
        layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;

        mapView.CurrentExtent = new RectangleShape(0, 200, 200, 0);

Apparently, this bug was introduced in version 12.3.5.

Hey @Clemens_Ladisch,

We investigated your issue and we made a fix in our beta branch available later tonight (should be 13.0.0-beta276 or later). Let me know if that works out for you.