Hello ThinkGeo-Team,
i have two issues when refreshing the Map-Conrol (v.5.5.62.0).
1.) If I refresh my overlay using one of the following methods. I recognized that the Map-Control only raises the OverlayDrawing event. The OverlaysDrawing event only occurs on the first load of the map data or if I change map extent.
WPFMAP.Refresh(WPFMAP.Overlays("OSM"))
WPFMAP.Overlays("OSM").Refresh()
I think this is not the behaviour you describe in your documentation -> "Occurs before all overlays are drawing."
2.) To activate the Caching system at runtime I use the following code.
If I set TileType property of overlay to MultipleTile everything works fine. But if I change it to SingleTile and activate the caching system an exception is thrown.
Private Sub ToolStripButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton2.Click
If ToolStripButton2.Checked Then
DirectCast(WPFMAP.Overlays("OSM"), ThinkGeo.MapSuite.WpfDesktopEdition.LayerOverlay).TileType = ThinkGeo.MapSuite.WpfDesktopEdition.TileType.SingleTile
Else
DirectCast(WPFMAP.Overlays("OSM"), ThinkGeo.MapSuite.WpfDesktopEdition.LayerOverlay).TileType = ThinkGeo.MapSuite.WpfDesktopEdition.TileType.MultipleTile
End If
End Sub
Thomas