stamen / maperture

https://stamen.github.io/maperture/
MIT License
38 stars 11 forks source link

"Copy Image" doesn't work with Leaflet raster styles #180

Open RossThorn opened 1 year ago

RossThorn commented 1 year ago

When trying to get an image of a comparison involving a raster map, the "Copy Image" button doesn't work and instead shows a blank gray panel.

OpenStreetMap on the left vs Mapbox Outdoors on the right image

Stamen Terrain on the left vs Mapbox Outdoors on the right image

aparlato commented 1 year ago

Looking at this: I think this is just Leaflet styles specifically. When I use raster tiles in a mapbox gl style I see the expected result: image

The code to screenshot probably references a canvas element that isn't present in our Leaflet rendering component.