I am drawing a circle on my map like this:
CircleOptions circle=new CircleOptions();
circle.center(centre);
circle.strokeColor(0xFFFFA420);
circle.strokeWidth(2f);
circle.fillColor(0x11FFA420);
circle.radius(radius);
myMap.addCircle(circle);
To remove this circle, I am calling myMap.clear()
, which removes all items added to the map.
The question is how to remove this circle without removing all others items on the map?
Simplest way, you can use : circle.visible(false)
Code could be useful.
Try calling
remove()
on theCircle
object that you get back fromaddCircle()
. For ExampleNow when you want to remove Call this method