Leaflet.AutoLayers icon indicating copy to clipboard operation
Leaflet.AutoLayers copied to clipboard

ESRI and NGS layers misaligned in simple.html(example)

Open bstreiss opened this issue 8 years ago • 1 comments

Hi, While playing with your examples I came across an issue I thought you might like to know about. Using Chrome (I haven't checked other browsers) both ESRI layers and the NGS move when they are added. The markers stay the same on the screen, but are now in the middle of the Pacific.

bstreiss avatar Oct 14 '16 19:10 bstreiss

This is due to the example using servers that offer two different map projects. I am considering adding projection to the options and swapping projections on the map when the basemap changes.

An issue is how leaflet .7.x handles projections - it's for everything, not layer based, which can result in overlays going out of sync with basemaps if multiple projections are used.

aebadirad avatar Nov 18 '16 21:11 aebadirad