]> git.openstreetmap.org Git - chef.git/blob - cookbooks/imagery/templates/default/index.html.erb
imagery: use leaflet.locatecontrol from jsdelivr
[chef.git] / cookbooks / imagery / templates / default / index.html.erb
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
3   <head>
4     <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
5     <title><%= @title %></title>
6     <link rel="stylesheet" href="imagery.css" type="text/css" media="all" />
7
8     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.8.0/leaflet.min.css" integrity="sha512-oIQ0EBio8LJupRpgmDsIsvm0Fsr6c3XNHLB7at5xb+Cf6eQuCX9xuX8XXGRIcokNgdqL1ms7nqbQ6ryXMGxXpg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
9     <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.8.0/leaflet.min.js" integrity="sha512-TL+GX2RsOUlTndpkgHVnSQ9r6zldqHzfyECrdabkpucdFroZ3/HAhMmP2WYaPjsJCoot+0McmdPOLjmmicG9qg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
10
11     <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-plugins/3.4.0/control/Permalink.min.js" integrity="sha512-wEr+4N2qhQn/6/YACFWVAaKzS2vLeZCWyUJ14MfXGTfHG718QBvOqv9t5xhex+Fnd3VZVd0EWcn9nzRbTLL9bg==" crossorigin="anonymous"></script>
12     <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-plugins/3.4.0/control/Permalink.Layer.min.js" integrity="sha512-m7ds5hujMwIiJ9yPLnJDR4C3bFeURlrFeHnW+QpsDweqYs8hu0/cYdJFBYtRkWGFpvmF6HkOWSGy7vYP1Rg+BA==" crossorigin="anonymous"></script>
13     <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-plugins/3.4.0/control/Permalink.Overlay.min.js" integrity="sha512-dIzyCLt0Sg0QpDfLXJZfgwmkbjl5s+ND7uFGW6A7itxuKA241Fzp6fKmCnPLhadqqmjz5i9/1W6aCFPLNSIIXA==" crossorigin="anonymous"></script>
14
15     <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet.locatecontrol@0.76.0/dist/L.Control.Locate.min.css" integrity="sha512-jgC7UUaraDNfHV+p1HP+uv4N4xyeIIJPiHC4VhSHoiRZxAcf51j9vhq5ExRyPWZyfjEcKwtxioV3oyhcWuknqQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
16     <script src="https://cdn.jsdelivr.net/npm/leaflet.locatecontrol@0.76.0/dist/L.Control.Locate.min.js" charset="utf-8" integrity="sha512-3mUIzmFDiuy7XdGjX5OfpjXnLK1XFBZ1S22ea0GYz14Q+OL5aHveYQxb12KLwD6mlwynNuXqee5SPvKRGJoNPg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
17
18     <script type="text/javascript" src="imagery.js"></script>
19     <style type="text/css">
20     @media print {
21       .leaflet-control { display:none }
22     }
23     </style>
24   </head>
25   <body onload="createMap('map')">
26     <div id="map"></div>
27   </body>
28 </html>