S
S
strelkovandrey2017-05-20 15:30:56
Drupal
strelkovandrey, 2017-05-20 15:30:56

How to make Yandex maps friends with Openlayers?

Good afternoon, I'm trying to display a Yandex map with labels using CMS Drupal + Openlayers.
But I take the map not from online, but downloaded with the help of Sas.planet, i.e. tiles (why this way, because the map will be offline Intranet)
And I noticed one feature that if I place a point by geocoordinates (let's say an airport in Switzerland), then when viewing the map, the point is shifted higher.
7033d0e0b46b430791bea462bf96a1e0.png
Googled that Yandex uses a non-standard projection 3857/900913, and even there seems to be some kind of fix for this
itranga.blogspot.ru/2009/03/alert111.html
but the files no longer exist from this page (html, js)
How to be, in what is the problem, is it really a matter of projection, or something else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dom1n1k, 2017-05-20
@dom1n1k

Yes, Yandex has a different projection - also Mercator, but elliptical, not spherical.
https://tech.yandex.ru/maps/doc/theory/concepts/co...
It is more accurate, but not very common, and there are nuances with compatibility.
I didn’t have much to do with OL, but I guess the answer should be found somewhere here:
https://openlayers.org/en/latest/apidoc/ol.proj.html
If Leaflet was used, then
leafletjs.com/reference-1.0 .3.html#projection
leafletjs.com/reference-1.0.3.html#crs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question