Skip to content

Commit

Permalink
Add @media print CSS to remove unnecessary html element
Browse files Browse the repository at this point in the history
close #384
  • Loading branch information
kamataryo committed Oct 11, 2023
1 parent b4c884b commit 548be24
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/CustomAttributionControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ class CustomAttributionControl implements IControl {
}
}
@media print {
.maplibregl-ctrl-attrib-button {
display: none!important;
}
}
.maplibregl-ctrl-attrib a {
color: rgba(0,0,0,.75);
text-decoration: none;
Expand Down
6 changes: 6 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,9 @@
display: block!important;
}
/* End: CSS for Attribution */

@media print {
.maplibregl-control-container button {
display: none;
}
}

0 comments on commit 548be24

Please sign in to comment.