T
T
Techno_troll2020-11-28 02:48:23
JavaScript
Techno_troll, 2020-11-28 02:48:23

Confused coordinates in Yandex maps?

I create a polygon in the Yandex map constructor - a delivery zone. I export it to geojson. On the site, through the object manager, I pull up this geojson and get the zone in general in a different place on the map. And I got into this export file and began to check the coordinates manually - it turned out that the latitude and longitude were correct, but swapped. Why is this happening and how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Techno_troll, 2020-11-28
@Techno_troll

Found the answer: you need to change the order of coordinates in the api connection using the coordorder parameter:
https://tech.yandex.ru/maps/doc/jsapi/2.1/dg/conce...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question