i got the error like the given key was not present in the dictionary at
LayerOverlay spatialFenceOverlay=(LayOverlay)Map1.CustomOverlays["SpatialFenceOverlay"];
Key not present
Hi Djay,
We need to set the Overlayer’s id before using. Please see the following code:
LayerOverlay layerOverlay = new LayerOverlay(“SpatialFenceOverlay”);
Map1.CustomOverlays.Add(layerOverlay);
LayerOverlay overlayedr = Map1.CustomOverlays[“SpatialFenceOverlay”] as LayerOverlay;
Thanks,
Peter