There was a problem with drawing a polygon. The bottom line is that the map draws sectors of directions north, northeast, east, etc. Direction lines are drawn with the geodesic property: true. After that, some sectors are painted in red, for this purpose polygons are drawn at the same points as the direction lines and also with geodesic: true. But on Google maps, the sector of the north is painted over correctly, it infinitely draws a polygon, delimiting it with given points. And on the Yandex maps, the polygon is either drawn only partially, or moves down completely.

on the first picture, as the Yandex polygon displays and the blue marks on which it is built:



sometimes draws like this:



and that as on the same points draws Google:



Is it possible to somehow force Yandex to draw as well as Google?

The code that draws a polygon in Yandex:

polygon_ya[i] = new ymaps.Polygon([triCoords5],{}, { fill: true, stroke: false, fillColor: fillcolor, fillOpacity: fillopa, geodesic: true }); map_var.geoObjects.add(polygon_ya[i]); 

Drawing Example: http://jsfiddle.net/aeqskzdn/23/

  • one
    Try to put for the geometry of the polygon coordRendering: 'straightPath' Documentation: tech.yandex.ru/maps/doc/jsapi/2.1/ref/reference/ ... It should look like this: polygon_ya [i] .geometry.options.set ('coordRendering' , 'straightPath'); In general, it will be easier to help if you collect an example somewhere, for example, on jsfiddle. - se0ga
  • coordRendering: 'straightPath' set, still going more. I'll try to put together an example - alex37
  • It seems that without intermediate points can not do here jsfiddle.net/dLwpy8hv - se0ga

0