Mercurial > hgrepos > hgweb.cgi > skipweb
changeset 3929:e71d1b576474
konjayku map
author | taka <c117164@e.koeki-u.ac.jp> |
---|---|
date | Sat, 31 Aug 2019 21:30:41 +0900 |
parents | 69ac9cb42da4 |
children | 918afdc47bef |
files | konjyaku/genzai.geojson konjyaku/kako.geojson konjyaku/konjyaku.html konjyaku/multi.js |
diffstat | 4 files changed, 2843 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/konjyaku/genzai.geojson Sat Aug 31 21:30:41 2019 +0900 @@ -0,0 +1,1304 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "properties": { + "name": "にいた橋", + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/megane_now.jpg}}", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.839875, + 38.910279 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "下日枝神社", + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/hieda_now.jpg}}", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市日吉町1丁目7−32", + "緯度経度": "緯度: 38.902465 経度: 139.840021" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.830342, + 38.920208 + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Red" + }, + "name": "今町(寿町)", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Red" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.834666, + 38.922007 + ], + [ + 139.834655, + 38.921565 + ], + [ + 139.834628, + 38.921131 + ], + [ + 139.834515, + 38.920772 + ], + [ + 139.83436, + 38.920405 + ], + [ + 139.833754, + 38.919119 + ], + [ + 139.834564, + 38.918881 + ], + [ + 139.835663, + 38.920826 + ], + [ + 139.835975, + 38.922429 + ], + [ + 139.834687, + 38.92245 + ], + [ + 139.834687, + 38.922199 + ], + [ + 139.834666, + 38.922007 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Red" + }, + "name": "今町(栄町)", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Red" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.835347, + 38.922491 + ], + [ + 139.835594, + 38.923113 + ], + [ + 139.835835, + 38.923493 + ], + [ + 139.836055, + 38.923802 + ], + [ + 139.836307, + 38.924119 + ], + [ + 139.836688, + 38.924632 + ], + [ + 139.837203, + 38.924515 + ], + [ + 139.837675, + 38.924399 + ], + [ + 139.837412, + 38.923814 + ], + [ + 139.837182, + 38.923268 + ], + [ + 139.837021, + 38.922892 + ], + [ + 139.836838, + 38.922312 + ], + [ + 139.835347, + 38.922491 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "光丘文庫", + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/bunko_now.jpg}}", + "_storage_options": { + "iconClass": "Default" + }, + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市日吉町2丁目7−71", + "_umap_options": { + "iconClass": "Default" + }, + "緯度経度": "緯度: 38.919727 経度: 139.830802" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.830921, + 38.91982 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "光丘神社", + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/koukyu_now.jpg}}", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市日吉町1丁目7−16", + "緯度経度": "緯度: 38.920924 経度: 139.831243" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.831324, + 38.920509 + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Red" + }, + "name": "北千日堂前1丁目", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Red" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.837981, + 38.927433 + ], + [ + 139.837638, + 38.927324 + ], + [ + 139.837294, + 38.927216 + ], + [ + 139.837278, + 38.927111 + ], + [ + 139.837203, + 38.926594 + ], + [ + 139.837675, + 38.926556 + ], + [ + 139.837852, + 38.926535 + ], + [ + 139.837997, + 38.926519 + ], + [ + 139.838684, + 38.926393 + ], + [ + 139.838973, + 38.926343 + ], + [ + 139.839767, + 38.926231 + ], + [ + 139.8404, + 38.92616 + ], + [ + 139.840432, + 38.926085 + ], + [ + 139.841586, + 38.926147 + ], + [ + 139.841559, + 38.926865 + ], + [ + 139.841645, + 38.927224 + ], + [ + 139.840545, + 38.927478 + ], + [ + 139.839971, + 38.92757 + ], + [ + 139.839311, + 38.927608 + ], + [ + 139.838678, + 38.927558 + ], + [ + 139.837981, + 38.927433 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Red" + }, + "name": "北千日堂前2丁目", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Red" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.840545, + 38.92747 + ], + [ + 139.83996, + 38.927583 + ], + [ + 139.839317, + 38.927579 + ], + [ + 139.838694, + 38.927545 + ], + [ + 139.83797, + 38.927399 + ], + [ + 139.837316, + 38.92722 + ], + [ + 139.837289, + 38.927566 + ], + [ + 139.837316, + 38.928067 + ], + [ + 139.837385, + 38.928563 + ], + [ + 139.838072, + 38.928509 + ], + [ + 139.838812, + 38.928451 + ], + [ + 139.839392, + 38.928392 + ], + [ + 139.840078, + 38.928338 + ], + [ + 139.84055, + 38.928296 + ], + [ + 139.84098, + 38.928184 + ], + [ + 139.840545, + 38.92747 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Red" + }, + "name": "北千日堂前3丁目", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Red" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.837391, + 38.928563 + ], + [ + 139.838077, + 38.928518 + ], + [ + 139.838812, + 38.928459 + ], + [ + 139.839386, + 38.928405 + ], + [ + 139.840073, + 38.928346 + ], + [ + 139.840556, + 38.92828 + ], + [ + 139.840974, + 38.928175 + ], + [ + 139.841259, + 38.928747 + ], + [ + 139.841484, + 38.929298 + ], + [ + 139.841103, + 38.929402 + ], + [ + 139.840808, + 38.929431 + ], + [ + 139.840754, + 38.929223 + ], + [ + 139.840148, + 38.929256 + ], + [ + 139.83951, + 38.929302 + ], + [ + 139.838936, + 38.929335 + ], + [ + 139.83819, + 38.929406 + ], + [ + 139.837557, + 38.929465 + ], + [ + 139.837391, + 38.928563 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Red" + }, + "name": "北千日堂前4丁目", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Red" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.837557, + 38.929448 + ], + [ + 139.83819, + 38.929398 + ], + [ + 139.83892, + 38.929348 + ], + [ + 139.839515, + 38.92931 + ], + [ + 139.840159, + 38.929252 + ], + [ + 139.840754, + 38.929202 + ], + [ + 139.840792, + 38.929419 + ], + [ + 139.841049, + 38.929406 + ], + [ + 139.841462, + 38.92931 + ], + [ + 139.841672, + 38.930024 + ], + [ + 139.840899, + 38.93012 + ], + [ + 139.840271, + 38.930166 + ], + [ + 139.839644, + 38.930208 + ], + [ + 139.839016, + 38.930262 + ], + [ + 139.838297, + 38.93032 + ], + [ + 139.837616, + 38.930358 + ], + [ + 139.837557, + 38.929448 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Red" + }, + "name": "北千日堂前5丁目", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Red" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.837621, + 38.930366 + ], + [ + 139.838292, + 38.930337 + ], + [ + 139.839011, + 38.93027 + ], + [ + 139.839628, + 38.930216 + ], + [ + 139.840277, + 38.930158 + ], + [ + 139.84091, + 38.930116 + ], + [ + 139.841666, + 38.930024 + ], + [ + 139.841806, + 38.930592 + ], + [ + 139.841006, + 38.930771 + ], + [ + 139.840352, + 38.930942 + ], + [ + 139.839746, + 38.931084 + ], + [ + 139.839118, + 38.931134 + ], + [ + 139.838405, + 38.931172 + ], + [ + 139.837638, + 38.93123 + ], + [ + 139.837621, + 38.930366 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Red" + }, + "name": "北千日堂前6丁目", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Red" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.841795, + 38.930604 + ], + [ + 139.841001, + 38.930784 + ], + [ + 139.840357, + 38.93095 + ], + [ + 139.839724, + 38.931101 + ], + [ + 139.839102, + 38.931138 + ], + [ + 139.83841, + 38.931176 + ], + [ + 139.8376, + 38.931234 + ], + [ + 139.837369, + 38.931255 + ], + [ + 139.83738, + 38.931501 + ], + [ + 139.83738, + 38.931681 + ], + [ + 139.837402, + 38.932202 + ], + [ + 139.837418, + 38.93239 + ], + [ + 139.837756, + 38.932353 + ], + [ + 139.837756, + 38.932261 + ], + [ + 139.838174, + 38.932236 + ], + [ + 139.838533, + 38.932219 + ], + [ + 139.839231, + 38.932177 + ], + [ + 139.839853, + 38.93214 + ], + [ + 139.840459, + 38.93214 + ], + [ + 139.841012, + 38.932156 + ], + [ + 139.84143, + 38.932248 + ], + [ + 139.841586, + 38.931889 + ], + [ + 139.841752, + 38.931435 + ], + [ + 139.841827, + 38.930955 + ], + [ + 139.841795, + 38.930604 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Red" + }, + "name": "北千日堂前7丁目", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Red" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.841318, + 38.932561 + ], + [ + 139.841414, + 38.932273 + ], + [ + 139.841006, + 38.932161 + ], + [ + 139.840465, + 38.932144 + ], + [ + 139.839864, + 38.932148 + ], + [ + 139.83922, + 38.932181 + ], + [ + 139.838539, + 38.932219 + ], + [ + 139.838179, + 38.93224 + ], + [ + 139.837761, + 38.932257 + ], + [ + 139.83775, + 38.932348 + ], + [ + 139.837423, + 38.932382 + ], + [ + 139.837444, + 38.932595 + ], + [ + 139.837482, + 38.932724 + ], + [ + 139.837482, + 38.932816 + ], + [ + 139.837503, + 38.932908 + ], + [ + 139.83753, + 38.933104 + ], + [ + 139.837595, + 38.933567 + ], + [ + 139.837868, + 38.933504 + ], + [ + 139.838335, + 38.933404 + ], + [ + 139.838668, + 38.933321 + ], + [ + 139.839301, + 38.933175 + ], + [ + 139.83995, + 38.933008 + ], + [ + 139.84054, + 38.933104 + ], + [ + 139.840856, + 38.933233 + ], + [ + 139.841135, + 38.932853 + ], + [ + 139.841248, + 38.932682 + ], + [ + 139.841318, + 38.932561 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Red" + }, + "name": "北千日堂前8丁目", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Red" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.837546, + 38.934589 + ], + [ + 139.837579, + 38.934251 + ], + [ + 139.8376, + 38.934055 + ], + [ + 139.837611, + 38.933859 + ], + [ + 139.837616, + 38.933717 + ], + [ + 139.837605, + 38.933579 + ], + [ + 139.837857, + 38.933504 + ], + [ + 139.838324, + 38.9334 + ], + [ + 139.838657, + 38.933321 + ], + [ + 139.83929, + 38.933175 + ], + [ + 139.839934, + 38.933004 + ], + [ + 139.84054, + 38.933108 + ], + [ + 139.84084, + 38.933221 + ], + [ + 139.840111, + 38.93421 + ], + [ + 139.839268, + 38.935244 + ], + [ + 139.838946, + 38.935136 + ], + [ + 139.838442, + 38.935082 + ], + [ + 139.837798, + 38.935007 + ], + [ + 139.837503, + 38.934936 + ], + [ + 139.837546, + 38.934589 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/hasi_now.jpg}}", + "name": "実生橋", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.835057, + 38.912716 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "山居倉庫", + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/souko_now.jpg}}", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市山居町1丁目1−8", + "緯度経度": "緯度: 38.911853 経度: 139.836621" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.836538, + 38.912954 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "山居倉庫欅並木", + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/keyaki_now.jpg}}", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市山居町1丁目1−8", + "緯度経度": "緯度: 38.911853 経度: 139.836621" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.836709, + 38.910537 + ] + } + }, + { + "type": "Feature", + "properties": { + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/park_now.jpg}}", + "name": "日和山公園", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市南新町1丁目10", + "緯度経度": "緯度: 38.919185 経度: 139.827769" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.828743, + 38.919011 + ] + } + }, + { + "type": "Feature", + "properties": { + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/mkagent_now.jpg}}", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "name": "日和山公園入り口", + "住所": "酒田市日吉町2丁目7", + "緯度経度": "緯度: 38.919474 経度: 139.830174" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.829221, + 38.919086 + ] + } + }, + { + "type": "Feature", + "properties": { + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/zyoyatou_now.jpg}}", + "name": "日和山公園常夜灯", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市南新町1丁目10", + "緯度経度": "緯度: 38.919185 経度: 139.827769" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.828877, + 38.91891 + ] + } + }, + { + "type": "Feature", + "properties": { + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/terrace_now.jpg}}", + "name": "日和山公園東屋", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市南新町1丁目10", + "緯度経度": "緯度: 38.919185 経度: 139.827769" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.82832, + 38.918443 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "旧本間邸", + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/honma_now.jpg}}", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市二番町1丁目12−13", + "緯度経度": "緯度: 38.914786 経度: 139.836571" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.839837, + 38.914695 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "本間美術館", + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/bizyukan_now.jpg}}", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市御成町7−7", + "緯度経度": "緯度: 38.923616 経度: 139.841045" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.841189, + 38.923677 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "東宮殿下行啓記念研究室", + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/kenkyuzyo_now.jpg}}", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市山居町1丁目1−8", + "緯度経度": "緯度: 38.911853 経度: 139.836621" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.836833, + 38.911957 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "海向寺", + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/kaikouzi_now.jpg}}", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市日吉町2丁目7−12", + "緯度経度": "緯度: 38.919255 経度: 139.830404" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.83032, + 38.919006 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "酒田市琢成学区コミュニティ防災センター", + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/girlsschool_now.jpg}}", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市北新町1丁目1", + "緯度経度": "緯度: 38.922812 経度: 139.833601" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.834049, + 38.922975 + ] + } + }, + { + "type": "Feature", + "properties": { + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/school_now.jpg}}", + "name": "酒田東高等学校", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市亀ヶ崎町1丁目3−60", + "緯度経度": "緯度: 38.909598 経度: 139.841776" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.842653, + 38.908676 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "酒田駅", + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/sakataeki_now.jpg}}", + "_storage_options": { + "iconClass": "Default" + }, + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市幸町1丁目1", + "_umap_options": { + "iconClass": "Default" + }, + "緯度経度": "緯度: 38.924049 経度: 139.844723" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.845309, + 38.921481 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "随神門", + "description": "現在\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/mon_now.jpg}}", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市日吉町2丁目7" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.829478, + 38.919211 + ] + } + } + ] + } + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/konjyaku/kako.geojson Sat Aug 31 21:30:41 2019 +0900 @@ -0,0 +1,1304 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "properties": { + "name": "にいた橋", + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/megane.jpg}}\n", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.839875, + 38.910279 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "下日枝神社", + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/hieda.jpg}}\n", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市日吉町1丁目7−32", + "緯度経度": "緯度: 38.902465 経度: 139.840021" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.830342, + 38.920208 + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Green" + }, + "name": "今町(寿町)", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Green" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.834666, + 38.922007 + ], + [ + 139.834655, + 38.921565 + ], + [ + 139.834628, + 38.921131 + ], + [ + 139.834515, + 38.920772 + ], + [ + 139.83436, + 38.920405 + ], + [ + 139.833754, + 38.919119 + ], + [ + 139.834564, + 38.918881 + ], + [ + 139.835663, + 38.920826 + ], + [ + 139.835975, + 38.922429 + ], + [ + 139.834687, + 38.92245 + ], + [ + 139.834687, + 38.922199 + ], + [ + 139.834666, + 38.922007 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Green" + }, + "name": "今町(栄町)", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Green" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.835347, + 38.922491 + ], + [ + 139.835594, + 38.923113 + ], + [ + 139.835835, + 38.923493 + ], + [ + 139.836055, + 38.923802 + ], + [ + 139.836307, + 38.924119 + ], + [ + 139.836688, + 38.924632 + ], + [ + 139.837203, + 38.924515 + ], + [ + 139.837675, + 38.924399 + ], + [ + 139.837412, + 38.923814 + ], + [ + 139.837182, + 38.923268 + ], + [ + 139.837021, + 38.922892 + ], + [ + 139.836838, + 38.922312 + ], + [ + 139.835347, + 38.922491 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "光丘文庫", + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/bunko.jpg}}\n", + "_storage_options": { + "iconClass": "Default" + }, + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市日吉町2丁目7−71", + "_umap_options": { + "iconClass": "Default" + }, + "緯度経度": "緯度: 38.919727 経度: 139.830802" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.830921, + 38.91982 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "光丘神社", + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/koukyu.jpg}}\n", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市日吉町1丁目7−16", + "緯度経度": "緯度: 38.920924 経度: 139.831243" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.831324, + 38.920509 + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Green" + }, + "name": "北千日堂前1丁目", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Green" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.837981, + 38.927433 + ], + [ + 139.837638, + 38.927324 + ], + [ + 139.837294, + 38.927216 + ], + [ + 139.837278, + 38.927111 + ], + [ + 139.837203, + 38.926594 + ], + [ + 139.837675, + 38.926556 + ], + [ + 139.837852, + 38.926535 + ], + [ + 139.837997, + 38.926519 + ], + [ + 139.838684, + 38.926393 + ], + [ + 139.838973, + 38.926343 + ], + [ + 139.839767, + 38.926231 + ], + [ + 139.8404, + 38.92616 + ], + [ + 139.840432, + 38.926085 + ], + [ + 139.841586, + 38.926147 + ], + [ + 139.841559, + 38.926865 + ], + [ + 139.841645, + 38.927224 + ], + [ + 139.840545, + 38.927478 + ], + [ + 139.839971, + 38.92757 + ], + [ + 139.839311, + 38.927608 + ], + [ + 139.838678, + 38.927558 + ], + [ + 139.837981, + 38.927433 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Green" + }, + "name": "北千日堂前2丁目", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Green" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.840545, + 38.92747 + ], + [ + 139.83996, + 38.927583 + ], + [ + 139.839317, + 38.927579 + ], + [ + 139.838694, + 38.927545 + ], + [ + 139.83797, + 38.927399 + ], + [ + 139.837316, + 38.92722 + ], + [ + 139.837289, + 38.927566 + ], + [ + 139.837316, + 38.928067 + ], + [ + 139.837385, + 38.928563 + ], + [ + 139.838072, + 38.928509 + ], + [ + 139.838812, + 38.928451 + ], + [ + 139.839392, + 38.928392 + ], + [ + 139.840078, + 38.928338 + ], + [ + 139.84055, + 38.928296 + ], + [ + 139.84098, + 38.928184 + ], + [ + 139.840545, + 38.92747 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Green" + }, + "name": "北千日堂前3丁目", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Green" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.837391, + 38.928563 + ], + [ + 139.838077, + 38.928518 + ], + [ + 139.838812, + 38.928459 + ], + [ + 139.839386, + 38.928405 + ], + [ + 139.840073, + 38.928346 + ], + [ + 139.840556, + 38.92828 + ], + [ + 139.840974, + 38.928175 + ], + [ + 139.841259, + 38.928747 + ], + [ + 139.841484, + 38.929298 + ], + [ + 139.841103, + 38.929402 + ], + [ + 139.840808, + 38.929431 + ], + [ + 139.840754, + 38.929223 + ], + [ + 139.840148, + 38.929256 + ], + [ + 139.83951, + 38.929302 + ], + [ + 139.838936, + 38.929335 + ], + [ + 139.83819, + 38.929406 + ], + [ + 139.837557, + 38.929465 + ], + [ + 139.837391, + 38.928563 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Green" + }, + "name": "北千日堂前4丁目", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Green" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.837557, + 38.929448 + ], + [ + 139.83819, + 38.929398 + ], + [ + 139.83892, + 38.929348 + ], + [ + 139.839515, + 38.92931 + ], + [ + 139.840159, + 38.929252 + ], + [ + 139.840754, + 38.929202 + ], + [ + 139.840792, + 38.929419 + ], + [ + 139.841049, + 38.929406 + ], + [ + 139.841462, + 38.92931 + ], + [ + 139.841672, + 38.930024 + ], + [ + 139.840899, + 38.93012 + ], + [ + 139.840271, + 38.930166 + ], + [ + 139.839644, + 38.930208 + ], + [ + 139.839016, + 38.930262 + ], + [ + 139.838297, + 38.93032 + ], + [ + 139.837616, + 38.930358 + ], + [ + 139.837557, + 38.929448 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Green" + }, + "name": "北千日堂前5丁目", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Green" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.837621, + 38.930366 + ], + [ + 139.838292, + 38.930337 + ], + [ + 139.839011, + 38.93027 + ], + [ + 139.839628, + 38.930216 + ], + [ + 139.840277, + 38.930158 + ], + [ + 139.84091, + 38.930116 + ], + [ + 139.841666, + 38.930024 + ], + [ + 139.841806, + 38.930592 + ], + [ + 139.841006, + 38.930771 + ], + [ + 139.840352, + 38.930942 + ], + [ + 139.839746, + 38.931084 + ], + [ + 139.839118, + 38.931134 + ], + [ + 139.838405, + 38.931172 + ], + [ + 139.837638, + 38.93123 + ], + [ + 139.837621, + 38.930366 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Green" + }, + "name": "北千日堂前6丁目", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Green" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.841795, + 38.930604 + ], + [ + 139.841001, + 38.930784 + ], + [ + 139.840357, + 38.93095 + ], + [ + 139.839724, + 38.931101 + ], + [ + 139.839102, + 38.931138 + ], + [ + 139.83841, + 38.931176 + ], + [ + 139.8376, + 38.931234 + ], + [ + 139.837369, + 38.931255 + ], + [ + 139.83738, + 38.931501 + ], + [ + 139.83738, + 38.931681 + ], + [ + 139.837402, + 38.932202 + ], + [ + 139.837418, + 38.93239 + ], + [ + 139.837756, + 38.932353 + ], + [ + 139.837756, + 38.932261 + ], + [ + 139.838174, + 38.932236 + ], + [ + 139.838533, + 38.932219 + ], + [ + 139.839231, + 38.932177 + ], + [ + 139.839853, + 38.93214 + ], + [ + 139.840459, + 38.93214 + ], + [ + 139.841012, + 38.932156 + ], + [ + 139.84143, + 38.932248 + ], + [ + 139.841586, + 38.931889 + ], + [ + 139.841752, + 38.931435 + ], + [ + 139.841827, + 38.930955 + ], + [ + 139.841795, + 38.930604 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Green" + }, + "name": "北千日堂前7丁目", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Green" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.841318, + 38.932561 + ], + [ + 139.841414, + 38.932273 + ], + [ + 139.841006, + 38.932161 + ], + [ + 139.840465, + 38.932144 + ], + [ + 139.839864, + 38.932148 + ], + [ + 139.83922, + 38.932181 + ], + [ + 139.838539, + 38.932219 + ], + [ + 139.838179, + 38.93224 + ], + [ + 139.837761, + 38.932257 + ], + [ + 139.83775, + 38.932348 + ], + [ + 139.837423, + 38.932382 + ], + [ + 139.837444, + 38.932595 + ], + [ + 139.837482, + 38.932724 + ], + [ + 139.837482, + 38.932816 + ], + [ + 139.837503, + 38.932908 + ], + [ + 139.83753, + 38.933104 + ], + [ + 139.837595, + 38.933567 + ], + [ + 139.837868, + 38.933504 + ], + [ + 139.838335, + 38.933404 + ], + [ + 139.838668, + 38.933321 + ], + [ + 139.839301, + 38.933175 + ], + [ + 139.83995, + 38.933008 + ], + [ + 139.84054, + 38.933104 + ], + [ + 139.840856, + 38.933233 + ], + [ + 139.841135, + 38.932853 + ], + [ + 139.841248, + 38.932682 + ], + [ + 139.841318, + 38.932561 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "_storage_options": { + "color": "Green" + }, + "name": "北千日堂前8丁目", + "作成者": "安達浩太", + "種別": "ヒストリー", + "_umap_options": { + "color": "Green" + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 139.837546, + 38.934589 + ], + [ + 139.837579, + 38.934251 + ], + [ + 139.8376, + 38.934055 + ], + [ + 139.837611, + 38.933859 + ], + [ + 139.837616, + 38.933717 + ], + [ + 139.837605, + 38.933579 + ], + [ + 139.837857, + 38.933504 + ], + [ + 139.838324, + 38.9334 + ], + [ + 139.838657, + 38.933321 + ], + [ + 139.83929, + 38.933175 + ], + [ + 139.839934, + 38.933004 + ], + [ + 139.84054, + 38.933108 + ], + [ + 139.84084, + 38.933221 + ], + [ + 139.840111, + 38.93421 + ], + [ + 139.839268, + 38.935244 + ], + [ + 139.838946, + 38.935136 + ], + [ + 139.838442, + 38.935082 + ], + [ + 139.837798, + 38.935007 + ], + [ + 139.837503, + 38.934936 + ], + [ + 139.837546, + 38.934589 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/hasi.jpg}}\n", + "name": "実生橋", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.835057, + 38.912716 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "山居倉庫", + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/souko.jpg}}\n", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市山居町1丁目1−8", + "緯度経度": "緯度: 38.911853 経度: 139.836621" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.836538, + 38.912954 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "山居倉庫欅並木", + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/keyaki.jpg}}\n", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市山居町1丁目1−8", + "緯度経度": "緯度: 38.911853 経度: 139.836621" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.836709, + 38.910537 + ] + } + }, + { + "type": "Feature", + "properties": { + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/park.jpg}}\n", + "name": "日和山公園", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市南新町1丁目10", + "緯度経度": "緯度: 38.919185 経度: 139.827769" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.828743, + 38.919011 + ] + } + }, + { + "type": "Feature", + "properties": { + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/mkagent.jpg}}\n", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "name": "日和山公園入り口", + "住所": "酒田市日吉町2丁目7", + "緯度経度": "緯度: 38.919474 経度: 139.830174" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.829221, + 38.919086 + ] + } + }, + { + "type": "Feature", + "properties": { + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/zyoyatou.jpg}}\n", + "name": "日和山公園常夜灯", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市南新町1丁目10", + "緯度経度": "緯度: 38.919185 経度: 139.827769" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.828877, + 38.91891 + ] + } + }, + { + "type": "Feature", + "properties": { + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/terrace.jpg}}\n", + "name": "日和山公園東屋", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市南新町1丁目10", + "緯度経度": "緯度: 38.919185 経度: 139.827769" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.82832, + 38.918443 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "旧本間邸", + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/honma.jpg}}\n", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市二番町1丁目12−13", + "緯度経度": "緯度: 38.914786 経度: 139.836571" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.839837, + 38.914695 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "本間美術館", + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/bizyukan.jpg}}\n", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市御成町7−7", + "緯度経度": "緯度: 38.923616 経度: 139.841045" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.841189, + 38.923677 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "東宮殿下行啓記念研究室", + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/kenkyuzyo.jpg}}\n", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市山居町1丁目1−8", + "緯度経度": "緯度: 38.911853 経度: 139.836621" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.836833, + 38.911957 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "海向寺", + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/kaikouzi.jpg}}\n", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市日吉町2丁目7−12", + "緯度経度": "緯度: 38.919255 経度: 139.830404" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.83032, + 38.919006 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "酒田市琢成学区コミュニティ防災センター", + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/girlsschool.jpg}}\n", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市北新町1丁目1", + "緯度経度": "緯度: 38.922812 経度: 139.833601" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.834049, + 38.922975 + ] + } + }, + { + "type": "Feature", + "properties": { + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/school.jpg}}\n", + "name": "酒田東高等学校", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市亀ヶ崎町1丁目3−60", + "緯度経度": "緯度: 38.909598 経度: 139.841776" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.842653, + 38.908676 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "酒田駅", + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/sakataeki.jpg}}\n", + "_storage_options": { + "iconClass": "Default" + }, + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市幸町1丁目1", + "_umap_options": { + "iconClass": "Default" + }, + "緯度経度": "緯度: 38.924049 経度: 139.844723" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.845309, + 38.921481 + ] + } + }, + { + "type": "Feature", + "properties": { + "name": "随神門", + "description": "過去\n{{https://www.yatex.org/gitbucket/sakatamap/pubphoto/raw/master/2018/c117006/mon.jpg}}\n", + "撮影者": "安達浩太", + "種別": "ヒストリー", + "住所": "酒田市日吉町2丁目7" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 139.829478, + 38.919211 + ] + } + } + ] + } + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/konjyaku/konjyaku.html Sat Aug 31 21:30:41 2019 +0900 @@ -0,0 +1,45 @@ +<!DOCTYPE html> +<html lang="ja"> +<head> +<title>test of DUAL map</title> +<meta charset="utf-8"> +<link rel="stylesheet" type="text/css" href="../../main.css"> +<style type="text/css"> +<!-- + h1 {font-size: 150%;} + div#map1, div#map3 {margin-right: 1em; float: left; clear: both;} + div#map1, div#map2, div#map3, div#map4 { + width: 47vw; height: 80vh; border: 1px solid black; + } + p.new {clear: both;} + .leaflet-popup-content {width: 350px; max-width: 650px} + .leaflet-popup-content img.popup {max-width: 30vw;} +--> +</style> +<link rel="stylesheet" type="text/css" href="../lib/leaflet.css"> +<script type="text/javascript" src="../lib/leaflet.js"></script> +<script type="text/javascript" src="../lib/leaflet-bing-layer.min.js"></script> +<script type="text/javascript" src="../lib/leaflet-omnivore.min.js"></script> +<script type="text/javascript" src="multi.js" charset="utf-8"> +</script> + +<style type="text/css"> + <!-- + .leaflet-popup-content-wrapper {xdisplay: none; background: pink;} + --> +</style> +</head> + +<body> + <h1>Comparison Map</h1> + <div></div><!-- To clear relative positioning of h1 defined in main.css --> + <div id="map1">map1 here</div> + <div id="map2">map2 here</div> + + + <hr> + ©2019 by yuuji(at)koeki-u.ac.jp +</body> +</html> + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/konjyaku/multi.js Sat Aug 31 21:30:41 2019 +0900 @@ -0,0 +1,190 @@ + (function myself() { + var maps = []; + var bases = []; + function syncOn() { + for (var m of maps) + m.on('moveend', samerange); + } + function syncOff() { + for (var m of maps) + m.off('moveend', samerange); + } + function samerange(me) { + var map = me.target, tmap; + tmap = (map == map1 ? map2 : map1); + try { + syncOff(); + for (var m of maps) { + if (map != m) { + m.setZoom(map.getZoom()); // setZoom() First!! + m.fitBounds(map.getBounds()); + } + } + } finally { + syncOn(); + } + } + // Function for uMap-Style markdown conversion + function wikiRepl(s) { // uMap風マークダウン変換 + return s.replace(/{{(.*)\|([0-9][0-9]*)}}/g, + '<img class="popup" src="$1" width="$2">'). + replace(/{{(.*)}}/g, '<img class="popup" src="$1">'). + replace(/\[\[(.*)\|(.*)\]\]/g, '<a href="$1">$2</a>'). + replace(/\[\[(.*)\]\]/g, '<a href="$1">$1</a>'). + replace(/^### (.*)/, '<h4>$1</h4>'). + replace(/^## (.*)/, '<h3>$1</h4>'). + replace(/^# (.*)/, '<h2>$1</h4>'); + } + var lastPopup; + function syncPopup(ev) { + var t = ev.target; + if (!t.getLatLng) { // When CLOSING + try { + for (var m of maps) + m.off('popupclose', syncPopup); + lastPopup.closePopup(); + } finally { + for (var m of maps) + m.on('popupclose', syncPopup); + } + return; + } + let latlng = t.getLatLng(), + ll = [latlng.lng, latlng.lat]; + var popups = markerConstruction[ll]; + if (!popups) return; + + try { + for (let p of popups) { + p.off('popupopen', syncPopup); + } + for (let p of popups) { + if (p != ev.target) + if (ev.type=="popupopen") + lastPopup=p.openPopup(); + else + p.closePopup(); + } + } finally { + for (let p of popups) { + p.on('popupopen', syncPopup); + } + } + } + var markerCollection = {}; + function markerConstruction(feature, layer) { + let p = feature.properties, // "properties" in GeoJSON format + g = feature.geometry; + if (p) { + let name = p.name, desc = p.description; + let popup = "<h3>" + name + "</h3>" + wikiRepl(desc||""); + layer.bindPopup(popup); + layer.on('popupopen', syncPopup); + } + if (g && g.type == "Point" && g.coordinates) { + let co = g.coordinates; + markerConstruction[co] || (markerConstruction[co]=[]) + markerConstruction[co].push(layer) + // console.log(co); + } + } + function newGejsonLayer() { + return L.geoJson(null, { // Layer for omnivore + onEachFeature: markerConstruction}); + } + + function init() { + var m, n; + for (let i=1; n = "map"+i, m=document.getElementById(n); i++) { + maps.push(L.map(n).setView([38.891, 139.824], 13)); + } + function genBaseLayers() { + let bk='AjtFpRWR9qZlBZvZtFapZdeSeMm-rFV5EbHyvfBOEOtkdCHXUzSL5J9LxZYtrrcH', + bprop = {bingMapsKey: bk, maxZoom: 20, maxNativeZoom: 18, + culture: 'ja'}; + var basemaps = { + 'OpenStreetMap': + {url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + attribution: + '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors', + maxZoom: 20, maxNativeZoom: 18}, + '国土地理院(標準)': + {url: 'https://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png', + attribution: + '© <a href="https://maps.gsi.go.jp/development/ichiran.html">国土地理院</a>', + maxZoom: 20, maxNativeZoom: 18}, + '空中写真(国土地理院2007年-)': + {url: 'https://cyberjapandata.gsi.go.jp/xyz/ort/{z}/{x}/{y}.jpg', + attribution: + '© <a href="https://maps.gsi.go.jp/development/ichiran.html">国土地理院</a>', + maxZoom: 20, maxNativeZoom: 18}, + '簡易空中写真(国土地理院1974-1978年)': + {url: 'https://cyberjapandata.gsi.go.jp/xyz/gazo1/{z}/{x}/{y}.jpg', + attribution: + '© <a href="https://maps.gsi.go.jp/development/ichiran.html">国土地理院</a>', + maxZoom: 20, maxNativeZoom: 17}, + '空中写真(国土地理院1988-1990年)': + {url: 'https://cyberjapandata.gsi.go.jp/xyz/gazo4/{z}/{x}/{y}.jpg', + attribution: + '© <a href="https://maps.gsi.go.jp/development/ichiran.html">国土地理院</a>', + maxZoom: 20, maxNativeZoom: 17}, + 'OSM HikiBikeMap': + {url: 'https://toolserver.org/tiles/hikebike/{z}/{x}/{y}.png', + attribution: + '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors', + maxZoom: 20, maxNativeZoom: 18}, + '空中写真(国土地理院1961-1969年)': + {url: 'https://cyberjapandata.gsi.go.jp/xyz/ort_old10/{z}/{x}/{y}.png', + attribution: + '© <a href="https://maps.gsi.go.jp/development/ichiran.html">国土地理院</a>', + maxZoom: 20, maxNativeZoom: 17}, + 'OSM HikiBikeMap': + {url: 'https://toolserver.org/tiles/hikebike/{z}/{x}/{y}.png', + attribution: + '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors', + maxZoom: 20, maxNativeZoom: 18}, + 'BingMaps Road': + {provider: 'bing', + attr: Object.assign({}, bprop, {imagerySet: 'Road'})}, + 'BingMaps 航空写真': + {provider: 'bing', + attr: Object.assign({}, bprop, {imagerySet: 'Aerial'})}, + 'BingMaps 写真+ラベル': + {provider: 'bing', + attr: Object.assign({}, bprop, + {imagerySet: 'AerialWithLabels'})}, + 'BingMaps 明': + {provider: 'bing', + attr: Object.assign({}, + bprop, {imagerySet: 'RoadOnDemand'})}, + }; + var layers = {}; + for (let i in basemaps) { + if (basemaps[i].provider == 'bing') { + layers[i] = L.tileLayer.bing(basemaps[i].attr); + } else + layers[i] = L.tileLayer(basemaps[i].url, basemaps[i]); + } + return layers; + } + var gj1 = omnivore.geojson("genzai.geojson", null, newGejsonLayer()); + var gj2 = omnivore.geojson("kako.geojson", null, newGejsonLayer()); + var ovls = [{"今昔": gj1}, {"今昔": gj2}]; + //alert(Object.keys(Object.create(baseLayer))); + for (let i=0; i<maps.length; i++) { + let p = {"selectedBaseLayerIndex": i}; + let bl = genBaseLayers(); + L.control.layers(bl, ovls[i], p).addTo(maps[i]); + bl[Object.keys(bl)[i]].addTo(maps[i]); + L.control.scale({ + maxWidth: 200, imperial: false + }).addTo(maps[i]); + } + gj1.addTo(maps[0]); + gj2.addTo(maps[1]); + syncOn(); + for (m of maps) + m.on('popupclose', syncPopup); + } + window.onload = init; + })();