wareclause

Remove marker from map when a call is removed

Discussion created by wareclause on Jan 16, 2020
Latest reply on Jan 16, 2020 by wareclause

Brad Niemand I am adding a marker when a focus is done on a particular call or address. How do I clear that marker.

Here is how I am adding it:

 

// Set colors of results marker...
IGraphicProperties graphicProperties = new CommandsEnvironmentClass();
//Get the IRgbColor interface
IRgbColor color = new RgbColorClass();

color.RGB = Color.Lime.ToArgb();

//Get the IMarkerSymbol interface
IMarkerSymbol marker = (IMarkerSymbol)graphicProperties.MarkerSymbol;

marker.Color = color;
marker.Size = 10;
graphicProperties.MarkerSymbol = marker;

 

So how would I remove it? I tried setting the Marker Symbol to null, but that didn't work.

 

Thanks

Liz

Outcomes