After deleting a shape for a layer, the tiles involved in redisplaying the map show “the given key was not present in the dictionary”. This just began occurring when I update from “3.1.16.0” to “4.5.0.0”.
Each shape is individually added to multiple shape layers and a point layer for movable text.
Each Layer is added to a master overlay layer LayerOverlay("Master", False, TileType.MultipleTile) and then added to the map as a CustomOverlay Map1.CustomOverlays.Add(varMasterOverlayNew.
Because each shape is given a different color, individual value item is setup for each shape, added to a value style and then added as a Custom Style to the layer. varLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(varValueStyle).
When a shape is selected and deleted, the shape is deleted from each layer.
When the map is redrawn
Dim overlay As New LayerOverlay()
overlay = Map1.CustomOverlays("Master")
overlay.Redraw()
The tile involved displays “the given key was not present in the dictionary”
This problem only stared after upgrading. We went through an intermediate release 4.0.40.0, and I do not believe it had the problem.
Thanks!
Cyndi Pruett