I
I
Ivan Fotiev2016-07-20 00:54:56
JavaScript
Ivan Fotiev, 2016-07-20 00:54:56

How to remove circle from Yandex maps without touching other objects?

Hello, I need to calculate the cost of delivery and display the elements located in the required radius from the beginning of the route. I am not strong in js and Yandex maps api, so I took an example of calculating the cost of delivery (from the Yandex sandbox) and hung it on the coordinates of the beginning of the route

circle = new ymaps.Circle([position, 1000], null, { draggable: false });
 this._map.geoObjects.add(circle);
then I add the necessary labels and so on. But I ran into a problem, how can I remove the circle from the previous beginning of the route when setting a new beginning of the route?
I found how to remove marks and balloons, but I didn’t find how to circle
I will be glad to hear the answers to the question asked and I will hear how you implemented this task.
https://tech.yandex.ru/maps/jsbox/2.1/deliveryCalc...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2016-07-20
@nazarpc

It's the same:
Just save this circle so you can access it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question