grinat / leaflet-simple-map-screenshoter

Leaflet plugin which take screenshot of map
MIT License
71 stars 19 forks source link

The screenshot is black and seems having issues with other plugins #52

Closed navilaufm closed 11 months ago

navilaufm commented 11 months ago

Hello, when adding the plugin the simpliest way as show here after hitting button a black screen is downloaded and this messages appear in the console, thanks:

leaflet-simple-map-screenshoter:1 Error while reading CSS rules from https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/leaflet.css SecurityError: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules

leaflet-simple-map-screenshoter:1 Error while reading CSS rules from https://cdnjs.cloudflare.com/ajax/libs/mapbox-gl/1.13.1/mapbox-gl.min.css SecurityError: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules

leaflet-simple-map-screenshoter:1 Error while reading CSS rules from https://cdnjs.cloudflare.com/ajax/libs/leaflet.fullscreen/1.4.2/Control.FullScreen.min.css SecurityError: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules
navilaufm commented 11 months ago

Hello, it was an issue related to the external libraries, have downloaded to be local and seems to be working the screenshot.