index.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <title>Leaflet Provider Demo</title>
  5. <meta charset="utf-8" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  8. <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" />
  9. <style>
  10. html {
  11. height: 100%;
  12. -moz-box-sizing: border-box;
  13. -webkit-box-sizing: border-box;
  14. box-sizing: border-box;
  15. vertical-align: baseline;
  16. }
  17. body, #container { height: 100%; margin: 0; padding: 0;}
  18. .map { height: 100%; }
  19. #info {
  20. background: rgba(255, 255, 255, 0.85);
  21. box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  22. position: fixed;
  23. width: 50%;
  24. max-width: 600px;
  25. left: 45%;
  26. margin-left: -300px;
  27. padding: 6px 8px;
  28. border-radius: 5px;
  29. font: 14px/16px Arial, Helvetica, sans-serif;
  30. }
  31. #info h4:first-child {
  32. margin: 0 0 5px;
  33. }
  34. #info h4 {
  35. margin: 5px 0 5px;
  36. }
  37. #info h4 code {
  38. font-weight: normal;
  39. }
  40. #info .provider-names {
  41. padding-bottom: 5px;
  42. display: block;
  43. padding-left: 15px;
  44. }
  45. #info pre {
  46. margin: 0;
  47. }
  48. #info pre code {
  49. font-size: 10px;
  50. overflow-x: auto;
  51. }
  52. </style>
  53. <!--Fork Me on Github ribbon, we're using the awsome version from simonwhitaker available at https://github.com/simonwhitaker/github-fork-ribbon-css -->
  54. <link rel="stylesheet" href="../css/gh-fork-ribbon.css" />
  55. <!--[if IE]>
  56. <link rel="stylesheet" href="../css/gh-fork-ribbon.ie.css" />
  57. <![endif]-->
  58. <link rel="stylesheet" href="highlightjs/github.css">
  59. <link rel="stylesheet" href="control.layers.minimap.css">
  60. </head>
  61. <body>
  62. <div class="github-fork-ribbon-wrapper left">
  63. <div class="github-fork-ribbon">
  64. <a href="https://github.com/leaflet-extras/leaflet-providers">Fork me on GitHub</a>
  65. </div>
  66. </div>
  67. <div id="info">
  68. <h4><a href="https://github.com/leaflet-extras/leaflet-providers">Leaflet-providers preview</a></h4>
  69. <p>
  70. This page shows mini maps for all the layers available in <a href="https://github.com/leaflet-extras/leaflet-providers">Leaflet-providers</a>.
  71. </p>
  72. </div>
  73. <div id="map" class="map"></div>
  74. <script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet-src.js"></script>
  75. <script src="../leaflet-providers.js"></script>
  76. <script src="L.Map.Sync.js"></script>
  77. <script src="L.Control.Layers.Minimap.js"></script>
  78. <script src="highlightjs/highlight.pack.js"></script>
  79. <script src="preview.js"></script>
  80. </body>
  81. </html>