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
Due to a quirk in Firefox discussed in this thread WebGL based Maps do not print properly in Firefox. However, as mentioned in this comment setting preserveDrawingBuffer to true resolves the issue. I have confirmed this to be true by adding it to the options passed into the maplibregl object. (See image)
I know there are some performance concerns associated with setting this to true. Are those significant enough to block users from printing maps in Firefox?
Describe the proposed solution
Add preserveDrawingBuffer: true to line 159 in src/MaplibreGLLayer.js, which would add it to the options passed into the _glMap on line 162.
Alternatives considered
Allowing a user to set this in the options they pass to VectorBasemapLayer and VectorTileLayer and keep it false by default unless set to true by the user. However, if this is the case I think there should be something in the README that calls out this printing issue in Firefox. It was not an easy issue to track down. Many thanks to the contributors who helped me.
Additional Information
I received help from the Maplibre folks as well, as seen here. Definitely a team effort and I appreciate all the assistance. Glad to have finally figured out how to fix it.
The text was updated successfully, but these errors were encountered:
Describe the problem
Due to a quirk in Firefox discussed in this thread WebGL based Maps do not print properly in Firefox. However, as mentioned in this comment setting
preserveDrawingBuffer
totrue
resolves the issue. I have confirmed this to be true by adding it to the options passed into themaplibregl
object. (See image)I know there are some performance concerns associated with setting this to true. Are those significant enough to block users from printing maps in Firefox?
Describe the proposed solution
Add
preserveDrawingBuffer: true
to line 159 insrc/MaplibreGLLayer.js
, which would add it to the options passed into the_glMap
on line 162.Alternatives considered
Allowing a user to set this in the options they pass to
VectorBasemapLayer
andVectorTileLayer
and keep it false by default unless set to true by the user. However, if this is the case I think there should be something in the README that calls out this printing issue in Firefox. It was not an easy issue to track down. Many thanks to the contributors who helped me.Additional Information
I received help from the Maplibre folks as well, as seen here. Definitely a team effort and I appreciate all the assistance. Glad to have finally figured out how to fix it.
The text was updated successfully, but these errors were encountered: