diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-10-18 22:16:21 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-10-18 22:16:21 +0900 |
| commit | 9a169c21e1032493a68d575b534cd31179b437e3 (patch) | |
| tree | ba9d63f456e1eb403379926c9de89eb5ce100c84 /scripts/park-editor.html | |
| parent | 4e84129d4b2b3e806689371f8912ffa2f4767113 (diff) | |
公園一覧: 非市立公園・市民広場の追加と地図調整
未一致のOSMポリゴンを一覧に追加し、都立・民間・未確認のバッジを表示
市民広場3件を追加し、花小金井四丁目市民広場の名称を修正
地図の初期表示を市境に合わせ、市外をマスク
Googleマップリンクを座標優先に変更
手動照合用のレビューCSV生成とOSM ID上書きを追加
Diffstat (limited to 'scripts/park-editor.html')
| -rw-r--r-- | scripts/park-editor.html | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/park-editor.html b/scripts/park-editor.html index 9ce109a..8c519e9 100644 --- a/scripts/park-editor.html +++ b/scripts/park-editor.html @@ -38,7 +38,7 @@ </header> <div class="wrap"><table id="tbl"><thead></thead><tbody></tbody></table></div> <script> -const FIELDS = ["公園名","住所","町名","面積㎡","500㎡以上","種別","南西部指定管理","トイレ","水飲み場","ベンチ・椅子","テーブル","パーゴラ","東屋","防災用具","ボール遊び","遊具","備考"]; +const FIELDS = ["公園名","住所","町名","面積㎡","500㎡以上","種別","南西部指定管理","設置者","トイレ","水飲み場","ベンチ・椅子","テーブル","パーゴラ","東屋","防災用具","ボール遊び","遊具","緯度","経度","備考"]; let parks = []; const tbl = document.getElementById("tbl"); const thead = tbl.querySelector("thead"); @@ -47,8 +47,11 @@ const q = document.getElementById("q"); const count = document.getElementById("count"); const status = document.getElementById("status"); -function mapsUrl(name) { - return "https://www.google.com/maps/search/?api=1&query=" + encodeURIComponent("小平市" + (name || "")); +function mapsUrl(p) { + if (p["緯度"] && p["経度"]) { + return "https://www.google.com/maps/search/?api=1&query=" + p["緯度"] + "," + p["経度"]; + } + return "https://www.google.com/maps/search/?api=1&query=" + encodeURIComponent("小平市" + (p["公園名"] || "")); } async function load() { @@ -71,7 +74,7 @@ function render() { const mapA = document.createElement("a"); mapA.textContent = "🗺"; mapA.title = "Googleマップで開く"; - mapA.href = mapsUrl(p["公園名"] || ""); + mapA.href = mapsUrl(p); mapA.target = "_blank"; mapA.rel = "noopener"; mapA.addEventListener("click", function (ev) { |
