clarity-h2020 / map-component

The Map Component is a reusable, flexible and highly configurable Building Block meant to be used throughout CSIS.
https://csis.myclimateservice.eu/
1 stars 1 forks source link

Study area starts moving after taking first screenshot #63

Closed patrickkaleta closed 5 years ago

patrickkaleta commented 5 years ago

After implementing the new feature (#58) of the page not to reload after a screenshot is taken, I noticed that the study area starts moving once the user is either moving in the map or zooming in or out of it. This is both the case for the Study area map (e.g. here), as well as for the individual maps in each GL-step (e.g. here).

The two most recent screenshots in the summary tab in Study 35 show how this effect looks like.

@therter I'm guessing this might have something to do with the replaceTranslate3dStylefunctions in the csis_include_in_report.js. Maybe this somehow needs to be reset before taking any additional new screenshots. Can you please have a look at this?

therter commented 5 years ago

I'm guessing this might have something to do with the replaceTranslate3dStylefunctions in the csis_include_in_report.js.

That was the reason for the wrong study area after a screenshot was taken. But with the onclone parameter of the html2canvas function, this could be fixed.