You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the printing package creates a "screenshot" of the open layers map to print it (using the html2canvas library).
Some UI elements (such as help tooltips, or draw indicators) should not be shown when creating the screenshot.
Currently, two methods are used by the printing package:
It provides a css class (printing-hide) that can be attached to arbitrary DOM-Elements. These (and their children) will be ignored during screenshot creation. This approach is good and can be kept.
It manually hides active draw interactions to get rid of the indicator. This is not future proof (or well maintainable) and should be replaced by a better system (see below).
The idea is as follows:
When an interaction (selection, measurement, ...) is created, it registers itself on the map model (or some sub-interface)
The registration includes callback methods to destroy and to temporarily disable the interaction
When the printing package (or some other package) wants to print the map, it temporarily disables interactions (which in turn hide the appropriate screen elements) and enables them again later
The text was updated successfully, but these errors were encountered:
antoniave
changed the title
[Printing][Map] API for Map Export State
[Map-Printing][Map] API for Map Export State
Feb 13, 2024
Currently, the printing package creates a "screenshot" of the open layers map to print it (using the html2canvas library).
Some UI elements (such as help tooltips, or draw indicators) should not be shown when creating the screenshot.
Currently, two methods are used by the printing package:
printing-hide
) that can be attached to arbitrary DOM-Elements. These (and their children) will be ignored during screenshot creation. This approach is good and can be kept.The idea is as follows:
The text was updated successfully, but these errors were encountered: