Newer
Older
osm-data / index.html
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset='utf-8'/>
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>PLATEAU DATA</title>
  7. <link rel="stylesheet" href="lib/ol6.14.1-dist/ol.css" type="text/css">
  8. <link rel="stylesheet" href="lib/surveyor.css" type="text/css">
  9. <script src="lib/ol6.14.1-dist/ol.js"></script>
  10. <script src="index.js" type='text/javascript'></script>
  11. <style>
  12. #map {
  13. width: 98%;
  14. height: 720px;
  15. }
  16. #popup {
  17. position: relative;
  18. display: inline-block;
  19. margin: 1.5em 0;
  20. padding: 7px 10px;
  21. min-width: 120px;
  22. max-width: 100%;
  23. color: #555;
  24. font-size: 16px;
  25. background: #FFF;
  26. border: solid 3px #555;
  27. box-sizing: border-box;
  28. }
  29.  
  30. #popup:before {
  31. content: "";
  32. position: absolute;
  33. bottom: -24px;
  34. left: 50%;
  35. margin-left: -15px;
  36. border: 12px solid transparent;
  37. border-top: 12px solid #FFF;
  38. z-index: 2;
  39. }
  40.  
  41. #popup:after {
  42. content: "";
  43. position: absolute;
  44. bottom: -30px;
  45. left: 50%;
  46. margin-left: -17px;
  47. border: 14px solid transparent;
  48. border-top: 14px solid #555;
  49. z-index: 1;
  50. }
  51.  
  52. .popup p {
  53. margin: 0;
  54. padding: 0;
  55. }
  56. </style>
  57. </head>
  58. <body onload='loadMap();'>
  59. <div id="wrap">
  60. <div class="header">
  61. <H1>PLATEAU OSMデータ</H1>
  62. <div id='map'></div>
  63. </div>
  64. <div id="inner">
  65. <div>
  66. <table>
  67. <caption>PLATEAU 作業対象リスト</caption>
  68. <thead>
  69. <tr>
  70. <th>code</th>
  71. <th>地区名</th>
  72. <th>フォルダ名</th>
  73. </tr>
  74. </thead>
  75. <tbody id="data_list"></tbody>
  76. </table>
  77. </div>
  78. <div class="clear"><hr /></div>
  79. </div>
  80. </div>
  81. <script src="lib/jquery-2.1.1.min.js"></script>
  82. <script>
  83. window.addEventListener('DOMContentLoaded', function() {
  84. $.getJSON("index.json", function(data) {
  85. var count = 0 ;
  86. $(data.list).each(function() {
  87. $("#data_list").append("<tr id=\"data_id" + count + "\"></tr>") ;
  88. $("#data_list #data_id" + count).append("<td class='code'>" + this.code + "</td>") ;
  89. $("#data_list #data_id" + count).append("<td class='name'>" + this.name + "</td>") ;
  90. $("#data_list #data_id" + count).append("<td class='path'><a href='index2.html?code=" + this.code +"'>" + this.path +"</a></td>") ;
  91. count++ ;
  92. });
  93. });
  94. });
  95. </script>
  96. <!-- ポップアップ -->
  97. <div id='popup' class='ol-popup'>
  98. <a href='#' id='popup-closer' class='ol-popup-closer'></a>
  99. <div id='popup-content'></div>
  100. </div>
  101. </body>
  102. </html>