Skip to content

Commit 864b3fa

Browse files
committed
Add print styles
1 parent e329485 commit 864b3fa

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/mapml.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,4 +446,13 @@ summary {
446446
.mapml-layer-remove-button {
447447
margin-left: 15px;
448448
text-decoration: none;
449-
}
449+
}
450+
451+
/* Force printers to include background-images of controls for printing.
452+
(https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/294) */
453+
@media print {
454+
.leaflet-control {
455+
-webkit-print-color-adjust: exact;
456+
color-adjust: exact;
457+
}
458+
}

0 commit comments

Comments
 (0)