Hello,
How do you determine if a layer exist? I am trying to do the following, but am getting a Dictionary error:
if(Map1.StaticOverlay.Layers["ShapeLayerEllipse"]as InMemoryFeatureLayer == null)
{
return;
}
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at ThinkGeo.MapSuite.Core.GeoCollection`1.get_Item(String key)