maperture icon indicating copy to clipboard operation
maperture copied to clipboard

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

Open RossThorn opened this issue 2 years ago • 1 comments

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

RossThorn avatar May 30 '23 15:05 RossThorn

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.

aparlato avatar Jun 01 '23 15:06 aparlato