]> git.openstreetmap.org Git - chef.git/commitdiff
Add CSS to not print leaflet-control
authorGrant Slater <grant.slater@wearefriday.com>
Fri, 3 Jun 2016 15:27:24 +0000 (16:27 +0100)
committerGrant Slater <grant.slater@wearefriday.com>
Fri, 3 Jun 2016 15:27:24 +0000 (16:27 +0100)
cookbooks/imagery/templates/default/index.html.erb

index cf2c9a26ed7c84ffcabb331d97d88b2d530aa5d5..74b7d53d0192f3975f2f4d96d5f085bf527e696c 100644 (file)
     <![endif]-->
     <script type="text/javascript" src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
     <script type="text/javascript" src="imagery.js"></script>
     <![endif]-->
     <script type="text/javascript" src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
     <script type="text/javascript" src="imagery.js"></script>
+    <style type="text/css">
+    @media print {
+      .leaflet-control { display:none }
+    }
+    </style>
   </head>
   <body onload="createMap('map')">
     <div id="map"></div>
   </head>
   <body onload="createMap('map')">
     <div id="map"></div>