Hi,
We have an issue where sometimes a tile in map view stops updating.
We have LayerOverlay that has InMemoryFeatureLayers where we are updating features.
Sometimes updated features are not being drawn on TileView but instead TileView is showing some old image.
I have done some debugging by adding event handlers to Overlay’s DrawingTile and DrawnTile and dumped drawn image to a file.
When TileView stops updating it seems that following is happening:
DrawingTile:
- GeoCanvas.CancellationTokenSource is always in Cancelled state (GeoCanvas.CancellationTokenSource.IsCancellationRequested)
DrawnTile:
- When dumping DrawnTile.ImageSource it always contains same old image and is not updating.
- It seems that GeoCanvas.NativeImage stops also updating (it’s empty)
I think problem happens when map is being redrawn and TileView is still drawing and drawing is cancelled.
-> GeoCanvas.CancellationTokenSource remains in cancelled state when next redraw(s) are done.
TileView recovers if map is panned so that tile goes completely out of view or map is zoomed.
I guess TileView is then recreated and it recovers?
I have made a workaround where I recreate GeoCanvas.CancellationTokenSource in DrawingTile phase and then it seems that TileView is updating correctly.
Currently we are using version 13.2.0-beta021.
Br,
Toni