File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change 99 < link rel ="stylesheet " href ="https://unpkg.com/leaflet@1.2.0/dist/leaflet.css " integrity ="sha512-M2wvCLH6DSRazYeZRIm1JnYyh22purTM+FDB5CsyxtQJYeKq83arPe5wgbNmcFXGqiSH2XR8dT/fJISVA1r/zQ== " crossorigin =""/>
1010
1111 < style >
12- html , body , # map { width : 100% ; height : 100% ; margin : 0px ; padding : 0px ;}
13- [ leaflet-browser-print-content ] {
14- display : none ;
12+ html , body { width : 100% ; height : 100% ; margin : 0px ; padding : 0px ;}
13+ # map {
14+ width : 80 % ; margin : auto; height : 50 % ;
1515 }
1616 </ style >
1717 </ head >
1818
1919 < body >
20+ < h1 class ="title " leaflet-browser-print-content > Leaflet Browser print TITLE</ h1 >
21+ < h3 class ="sub-content " leaflet-browser-print-content > Leaflet browser print plugin v0.4 for map printing with additional controls and content</ h3 >
2022 < div id ="map "> </ div >
2123
2224 < script src ="https://unpkg.com/leaflet@1.2.0/dist/leaflet.js " integrity ="sha512-lInM/apFSqyy1o6s89K4iQUKg6ppXEgsVxT35HbzUupEVRh2Eu9Wdl4tHj7dZO0s1uvplcYGmt3498TtHq+log== " crossorigin =""> </ script >
6264 L . popup ( { minWidth : 500 } ) . setLatLng ( L . latLng ( 55 , 5 ) ) . setContent ( "Leaflet browser print plugin with custom print Layer and content" ) . openOn ( map ) ;
6365 </ script >
6466
65- < style leaflet-browser-print-content >
67+ < style >
6668 .grid-print-container {
6769 grid-template : auto 1fr auto / 1fr ;
6870 margin : 10px ;
7173 .grid-map-print {
7274 grid-row : 2 ;
7375 }
76+
77+ .grid-print-container > .title ,
78+ .grid-print-container > .sub-content {
79+ color : white;
80+ }
7481 .title {
7582 grid-row : 1 ;
7683 justify-self : center;
77- color : white;
84+ text-align : center;
85+ color : grey;
7886 }
7987 .sub-content {
8088 grid-row : 5 ;
8189 padding-left : 10px ;
90+ text-align : center;
91+ color : grey;
8292 }
8393 </ style >
84- < h1 class ="title " leaflet-browser-print-content > Leaflet Browser print TITLE</ h1 >
85- < h3 class ="sub-content " leaflet-browser-print-content > Leaflet Browser print SUB TITLE text</ h3 >
8694 </ body >
8795
8896</ html >
You can’t perform that action at this time.
0 commit comments