N
N
nastya_zholudeva2017-10-16 18:46:12
Yandex maps
nastya_zholudeva, 2017-10-16 18:46:12

How to get the coordinates of the upper left and lower right points of a rectangle (Yandex API)?

Using the function, myMap.getBounds()I get the coordinates of the lower left and upper right corners of the map display area. How to get the coordinates of the upper left and lower right points? Found the answer
Current points x1,y1 x2,y2
Required x1,y2 x2,y1
but not sure if it's correct

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nicholas, 2017-10-16
@nastya_zholudeva

. (x1, y2) _ _ _ _ . (x2, y2)
| ...................... |
| ...................... |
| ...................... |
| ...................... |
. (x1,y1)_ _ _ _ _ . (x2, y1)
For such cases, it is convenient to draw on paper

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question