]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/templates/default/index.html.erb
Use variable to enable readonly mode, as was used in the previous version of the...
[chef.git] / cookbooks / imagery / templates / default / index.html.erb
index cf2c9a26ed7c84ffcabb331d97d88b2d530aa5d5..a53b27fadcbe99059eafeb71a054a90b4aec5d27 100644 (file)
@@ -9,7 +9,15 @@
     <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.ie.css" />
     <![endif]-->
     <script type="text/javascript" src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
+    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-plugins/1.6.1/control/Permalink.min.js"></script>
+    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-plugins/1.6.1/control/Permalink.Layer.min.js"></script>
+    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-plugins/1.6.1/control/Permalink.Overlay.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>