rowanwins / leaflet-easyPrint

A leaflet plugin which adds an icon to print the map - Demo @ http://rowanwins.github.io/leaflet-easyPrint/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to detect cors errors

barbalex opened this issue · comments

Lots of people are running into the issue with cors preventing printing.

Is there a way to detect that network calls for maps return cors errors?

That would be great because the ui could then inform the user and maybe the user can choose a different background map that does send cors headers.

Also: when the option hideControlContainer is set to true the menus disappear and probably because of the error never reappear. Maybe I can find something to circumvent that behaviour if cors errors can be detected.