shramov / leaflet-plugins

Plugins for Leaflet library
http://psha.org.ru/b/leaflet-plugins.html
MIT License
722 stars 289 forks source link

Yandex overlay is broken #287

Closed johnd0e closed 5 years ago

johnd0e commented 5 years ago

We have no documentation, but I suppose that overlay option is made exclusively for traffic layer, to show traffic w/o map tiles, which is great for overlay.

But official example yandex.html just does not work.

I see there 2 problems:

  1. https://github.com/shramov/leaflet-plugins/blob/4d4bf55f17f4e1e80e920f780c0089cedcdc33a3/layer/tile/Yandex.js#L143 This condition is never true, 'cause 'null' is not in list: https://github.com/shramov/leaflet-plugins/blob/4d4bf55f17f4e1e80e920f780c0089cedcdc33a3/layer/tile/Yandex.js#L18-L23 Easy to fix.
  2. Even if we fix 1st issue, our overlay stays hidden over baselayer. It's possible to put it in front by random clicking, but it's not reliable.