diff --git a/coverage.html b/coverage.html index 8512dd9..01efc4d 100644 --- a/coverage.html +++ b/coverage.html @@ -19,5 +19,12 @@

OpenStreetMap coverage (燃料給油所を指標にした網羅率)

国土交通省国土政策局「国土数値情報(燃料給油所データ;平成27年版)」をもとにhayashiが編集・加工したものです。

+ +

+ +

+

OpenStreetMap coverage (国土数値情報郵便局データ を指標にした網羅率)

+

国土交通省国土政策局「国土数値情報(郵便局データ;平成25年度版)」をもとにhayashiが編集・加工したものです。

+
diff --git a/coverage/fuel.js b/coverage/fuel.js index cdef0f9..565adfd 100644 --- a/coverage/fuel.js +++ b/coverage/fuel.js @@ -12,7 +12,7 @@ osm.addTo(map); var mvtSource0 = new L.TileLayer.MVTSource({ - url: "./tiles/tileFuel0/{z}/{x}/{y}.pbf", + url: "./tiles/tilePostoffice0/{z}/{x}/{y}.pbf", style: function (feature) { var style = {}; style.color = 'rgba(255,0,0,1)'; @@ -26,7 +26,7 @@ map.addLayer(mvtSource0); var mvtSource1 = new L.TileLayer.MVTSource({ - url: "./tiles/tileFuel1/{z}/{x}/{y}.pbf", + url: "./tiles/tilePostoffice1/{z}/{x}/{y}.pbf", style: function (feature) { var style = {}; style.color = 'rgba(255,200,0,1)'; @@ -40,7 +40,7 @@ map.addLayer(mvtSource1); var mvtSource2 = new L.TileLayer.MVTSource({ - url: "./tiles/tileFuel2/{z}/{x}/{y}.pbf", + url: "./tiles/tilePostoffice2/{z}/{x}/{y}.pbf", style: function (feature) { var style = {}; style.color = 'rgba(0,255,0,1)'; diff --git a/coverage/postoffice.html b/coverage/postoffice.html new file mode 100644 index 0000000..5f997c5 --- /dev/null +++ b/coverage/postoffice.html @@ -0,0 +1,94 @@ + + + + + + OpenStreetMap coverage (amenity=postoffice) + + + + +
+
+

OpenStreetMap coverage (国土数値情報 郵便局データを指標にした網羅率)

+
+

+
+
+
+ +
+
+

以下のデータは月に2〜3回程度の頻度で更新を行う予定です。

+
+
+
+ +

国土数値情報の燃料給油所位置を中心とする、200m四方の矩形領域に存在するOSMの amenity=postoffice ノードの評価点の合計を数える。
+
+ 対象ノード;
+ node & area: amenity = postoffice
+ node & area: disused:amenity = postoffice
+ node & area: abandoned:amenity = postoffice
+ node & area: demolished:amenity = postoffice
+ node & area: historic:amenity = postoffice
+ node & area: was:amenity = postoffice
+ node & area: removed:amenity = postoffice
+ node & area: no:amenity = postoffice
+
+ 評価点;
+ ある ーー> 50ポイント
+
+ レベル分け:
+ 評価点の合計値をもとに以下に色分けしています。
+ 0ポイント → 赤 (未入力)
+ 50ポイント以上 → 青 (入力済)
+

+
+ +
+
+ + + + + + + + + + + +
マッピングカバー率 都道府県別
code都道府県標本数カバー率(%)
+
+

+
+
+ + + + + + + + diff --git a/coverage/postoffice.js b/coverage/postoffice.js new file mode 100644 index 0000000..cdef0f9 --- /dev/null +++ b/coverage/postoffice.js @@ -0,0 +1,65 @@ +var debug = {}; + +var map = L.map('map').setView([36.131, 140.241], 9); // Kasumigaura + +//OSMレイヤー追加 +var osm = L.tileLayer( + 'http://tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png', { + attribution: 'Map data © OpenStreetMap', + maxZoom: 18 + } +); +osm.addTo(map); + +var mvtSource0 = new L.TileLayer.MVTSource({ + url: "./tiles/tileFuel0/{z}/{x}/{y}.pbf", + style: function (feature) { + var style = {}; + style.color = 'rgba(255,0,0,1)'; + style.radius = 5; + style.selected = { + radius: 6 + }; + return style; + } +}); +map.addLayer(mvtSource0); + +var mvtSource1 = new L.TileLayer.MVTSource({ + url: "./tiles/tileFuel1/{z}/{x}/{y}.pbf", + style: function (feature) { + var style = {}; + style.color = 'rgba(255,200,0,1)'; + style.radius = 5; + style.selected = { + radius: 6 + }; + return style; + } +}); +map.addLayer(mvtSource1); + +var mvtSource2 = new L.TileLayer.MVTSource({ + url: "./tiles/tileFuel2/{z}/{x}/{y}.pbf", + style: function (feature) { + var style = {}; + style.color = 'rgba(0,255,0,1)'; + style.radius = 5; + style.selected = { + radius: 6 + }; + return style; + } +}); +map.addLayer(mvtSource2); + +//Globals that we can change later. +var fillColor = 'rgba(149,139,255,0.4)'; +var strokeColor = 'rgb(20,20,20)'; + +//Add layer +mvtSource0.addTo(map); +mvtSource1.addTo(map); +mvtSource2.addTo(map); + +L.control.scale({imperial:false}).addTo(map);