4

I have a map with a custom projection (for maps.yandex.ru tiles) and default projection (Google and OSM tiles). When I add KmlLayer to map in the default projection it seems ok: Default projection

But switching map to maps.yandex layer (in custom projection)... Custom projection

and kml-objects are misplaced.

How do I tell KmlLayer about custom projection?

Andrew Leach
  • 12,945
  • 1
  • 40
  • 47
1d10t
  • 41
  • 2

1 Answers1

0

The way I understand it, any given object that has lat/lon (a,b) under a Mercator projection will have a different value than (a,b) under a custom projection. For example, if your custom projection was polar, the object would have distance from a fixed point and an angle from a fixed direction, and no lat/lon at all. So, the way to tell your KMLLayer about the custom projection would be to convert the coordinates of each object and rewrite the KML.

Marcelo
  • 9,387
  • 3
  • 35
  • 40