query working but when i close query user control , the Graphics still in map, my code is
GraphicsLayer graphicsLayer = this.MapControl.Layers["MyGraphicsLayer"] as GraphicsLayer;
i use this codes
this.MapControl.Layers.Clear();
Then all Layers invisible
any idea?
Hi Asghar,
Can you post some more codes?
Hab
Hi Asghar,
See if this can help.
GraphicsLayer graphicsLayer = MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer;
graphicsLayer.ClearGraphics();
Hab
Fixed!!!!!
This Code Worked
protected override void OnClose()
{
GraphicsLayer graphicsLayer = MapControl.Layers["MyGraphicsLayer"] as GraphicsLayer;
graphicsLayer.ClearGraphics();
base.OnClose();
}
Thanks