There is an array of coordinates of the form:

[[x1, y1], [x2, y2], [x3, y3]] 

I want to add circles to the map at these coordinates. I use this solution:

 coordArray.forEach(function(item) { mapCircle.geometry.setCoordinates(item); yMap.geoObjects.add(mapCircle); }); 

But only 1 circle is added - the last one from the array. What am I doing wrong?

  • Give a sample code on jsfiddle.net where an error occurs - neverd1m

0