Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RossThorn opened this issue May 30, 2023 · 1 comment
Open

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

RossThorn opened this issue May 30, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@RossThorn
Copy link
Contributor

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 RossThorn added the bug Something isn't working label May 30, 2023
@aparlato
Copy link
Collaborator

aparlato commented Jun 1, 2023

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 aparlato changed the title "Copy Image" doesn't work with raster styles "Copy Image" doesn't work with Leaflet raster styles Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants