// JavaScript Document // PHPに変換して掲載 // このJavaScriptはアップしない !! // 地理院タイル出典の共通の表示 var mbAttr = "地理院タイル"; //地理院地図 GSISTD = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png', {attribution: mbAttr}); //地理院写真 GSIPHOTO = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/seamlessphoto/{z}/{x}/{y}.jpg', {attribution: mbAttr}); //地理院写真(1945年~1950年) GSIort_USA10 = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/ort_USA10/{z}/{x}/{y}.png', {attribution: mbAttr}); //地理院淡色地図 GSIPALE = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/pale/{z}/{x}/{y}.png', {attribution: mbAttr}); //地理院色別標高図 GSIrelief = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/relief/{z}/{x}/{y}.png', {maxNativeZoom: 15, attribution: mbAttr }); //地理院陰影起伏図 GSIshade = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/hillshademap/{z}/{x}/{y}.png', {maxNativeZoom: 16, attribution: mbAttr }); //地理院白地図 GSIBLANK = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/blank/{z}/{x}/{y}.png',{minZoom: 5,maxZoom: 14, attribution: mbAttr }); //地理院アナグリフ GSIanaglyph = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/anaglyphmap_color/{z}/{x}/{y}.png',{minZoom: 5,maxZoom: 14, attribution: mbAttr }); //地理院傾斜量図 GSIslopemap = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/slopemap/{z}/{x}/{y}.png',{minZoom: 5,maxZoom: 14, attribution: mbAttr }); //地理院英語 GSIenglish = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/english/{z}/{x}/{y}.png',{minZoom: 5,maxZoom: 14, attribution: mbAttr }); //地理院地図 - overlay GSISTD_overlay = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png', {opacity: 0.2, maxNativeZoom: 15, attribution: mbAttr }); //地理院色別標高図 - overlay GSIrelief_overlay = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/relief/{z}/{x}/{y}.png', {opacity: 0.2, maxNativeZoom: 15, attribution: mbAttr }); //地理院陰影起伏図 - overlay GSIshade_overlay = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/hillshademap/{z}/{x}/{y}.png', {opacity: 0.3, maxNativeZoom: 16, attribution: mbAttr }); //OpenStreetMap OSM = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '© OpenStreetMap contributors'}); //Esri 道路地図 esri_worldStreet = L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}', { attribution: 'Tiles © Esri — Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012'}); //Esri 衛星画像 esri_worldimagery = L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'}); //Esri 衛星画像 - overlay esri_worldimagery_overlay = L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {opacity: 0.6,attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'}); //Esri 地形図 esri_worldtopo = L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}', {attribution: 'Tiles © Esri — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community'}); //google_maps var google_maps = L.tileLayer('https://mt1.google.com/vt/lyrs=r&x={x}&y={y}&z={z}', {attribution: "Google Map"}); //デフォルトの設定 - 地図中心点・ズーム値・レイヤーデフォルト表示 var map = L.map('map', {center: [43.221190,142.267456], zoom: 7, layers: [GSISTD, esri_worldimagery_overlay]}); //住所検索枠を表示 var osmGeocoder = new L.Control.OSMGeocoder({ position: "topright", placeholder: '住所・キーワード入力',text: '検索'}); map.addControl(osmGeocoder); //中心点センターマーカー・十字マーカー・別画像を表示 var centercrossIcon = L.icon({ iconUrl: '/benri_img/center.gif', iconRetinaUrl: '/benri_img/center.gif', iconSize: [32, 32], // アイコンサイズ iconAnchor: [16, 16] // 画像の位置。左上が 0,0 }); var crosshair = new L.marker(map.getCenter(), {icon: centercrossIcon, clickable:false}); // clickable:falseをいれないと十字画像の下のアイコンが触れない map.on('move', function(e) { crosshair.setLatLng(map.getCenter()); }); // 雨雲レーダー L.YimgTileLayer = L.TileLayer.extend({ //雨雲画像オーバーレイ getTileUrl: function (coords) { //雨雲リクエスト日付の作成 var now = new Date(); var year = now.getFullYear(); var month = now.getMonth() + 1; var day = now.getDate(); var hours = now.getHours(); var minutes = now.getMinutes(); if (month < 10) month = '0' + month; if (day < 10) day = '0' + day; if (hours < 10) hours = '0' + hours; minutes *= 0.1; minutes = Math.floor(minutes); minutes *= 10; if (minutes < 10) minutes = '0' + minutes; date = "" + year + month + day + hours + minutes; return L.Util.template(this._url, L.extend({ d: date, x: coords.x, y: Math.pow(2, this._getZoomForUrl() - 1) - 1 - coords.y, z: this._getZoomForUrl() + 1 }, this.options)); } }); // 雨雲画像 var rainmap = new L.YimgTileLayer('http://weather.map.c.yimg.jp/weather?x={x}&y={y}&z={z}&size=256&date={d}', { attribution: 'Rain map', maxZoom: 18, opacity: 0.6 }); // 雨雲画像をクリックで表示 //}).addTo(map); // 雨雲画像をデフォルトで表示 var baseMaps = { "OpenStreetMap": OSM, "地理院地図": GSISTD, "地理院写真": GSIPHOTO, //" ┗ 1945年~1950年": GSIort_USA10, "地理院淡色地図": GSIPALE, "地理院色別標高図": GSIrelief, "地理院陰影起伏図": GSIshade, "地理院傾斜量図": GSIslopemap, "地理院白地図": GSIBLANK, "地理院アナグリフ": GSIanaglyph, "地理院 English": GSIenglish, "Esri 道路地図": esri_worldStreet, "Esri 衛星画像": esri_worldimagery, "Esri 地形図": esri_worldtopo, "Google マップ": google_maps }; var overlay = { "センターマーカー": crosshair, //"雨雲情報": rainmap, "地理院地図": GSISTD_overlay, "地理院色別標高図": GSIrelief_overlay, "地理院陰影起伏図": GSIshade_overlay, "Esri 衛星画像": esri_worldimagery_overlay }; L.control.layers(baseMaps, overlay).addTo(map); //スケールを左下にも追加 L.control.scale().addTo(map); //デザイン化されたスケールを右下に表示 L.control.graphicScale({fill:'fill', position: 'bottomright' }).addTo(map); //ミニマップを表示 var osm2 = new L.TileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {minZoom: 0, maxZoom: 15, attribution: 'Map data © OpenStreetMap contributors' }); var miniMap = new L.Control.MiniMap(osm2, { toggleDisplay: true, position: 'bottomleft' }).addTo(map); //現在地を取得 var locate = L.control.locate({flyTo:true,strings: {title: "クリックすると現在地を取得します"} }).addTo(map); //フルスクリーンコントロール var fsControl = L.control.fullscreen(); map.addControl(fsControl); map.on('enterFullscreen', function(){ if(window.console) window.console.log('enterFullscreen'); }); map.on('exitFullscreen', function(){ if(window.console) window.console.log('exitFullscreen'); }); //マーカー情報保持 var markers=[]; //ポップアップを開く関数 function popupOn(id){ markers[id].openPopup(); } // マーカーの種類 var iconHokkaido = L.icon({iconUrl: '/map_icon_Leaflet/icon-with_shadow/DarkOrange.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); iconTohoku = L.icon({iconUrl: '/map_icon_Leaflet/icon-with_shadow/DeepSkyBlue.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); iconKanto = L.icon({iconUrl: '/map_icon_Leaflet/icon-with_shadow/Yellow.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); iconChubu = L.icon({iconUrl: '/map_icon_Leaflet/icon-with_shadow/Green.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); iconAlpus = L.icon({iconUrl: '/map_icon_Leaflet/icon-with_shadow/LightPink.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); iconNIshinihon = L.icon({iconUrl: '/map_icon_Leaflet/icon-with_shadow/PaleVioletRed.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); // マーカーの作成 // Point01 // 北海道の山々 9 markers[101] = L.marker([45.178611,141.241944], {icon:iconHokkaido}).bindTooltip("利尻岳").bindPopup(" 
利尻岳
りしりだけ Rishiridake
国土地理院の地図では利尻山(りしりざん)
北海道利尻町,利尻富士町
標高1,721m 利尻富士とも
深田は、
「礼文島から眺めた夕方の利尻岳の美しく烈しい姿を、私は忘れることができない。海一つ距ててそれは立っていた。利尻富士と呼ばれる整った形よりも、むしろ鋭い岩のそそり立つ形で、それは立っていた」
と記した。
"); map.addLayer(markers[101]); function flyto_101() { //目次と連動 map.flyTo(new L.LatLng(45.178611,141.241944),13); //マーカーの座標と連動 } markers[102] = L.marker([44.075558,145.123585], {icon:iconHokkaido}).bindTooltip("羅臼岳").bindPopup(" 
羅臼岳
らうすだけ Rausudake
北海道羅臼町,斜里町
標高1,661m 知床富士とも
深田は、
「さいはての山として、北方的風貌をおびた山として、羅臼岳は私の記憶に深く残っている」
と記した。
"); map.addLayer(markers[102]); function flyto_102() { //目次と連動 map.flyTo(new L.LatLng(44.075558,145.123585),13); //マーカーの座標と連動 } markers[103] = L.marker([43.768212,144.717882], {icon:iconHokkaido}).bindTooltip("斜里岳").bindPopup(" 
斜里岳
りしゃりだけ Sharidake
北海道斜里町,清里町,標津町
標高1,545m オホーツク富士,斜里富士とも
深田は、
「アイヌの人々がオンネプリ(大山)と呼んで尊崇した」とし、
「オンネプリという美しい山名を復活してもらいたいと思っている」
と記した。
"); map.addLayer(markers[103]); function flyto_103() { //目次と連動 map.flyTo(new L.LatLng(43.768212,144.717882),13); //マーカーの座標と連動 } markers[104] = L.marker([43.386242,144.009449], {icon:iconHokkaido}).bindTooltip("阿寒岳").bindPopup(" 
阿寒岳
あかんだけ Akandake
北海道釧路市,足寄町
標高1,499m(一般に阿寒岳は雌阿寒岳を指すことが多い)
深田は、
「高さは雌阿寒岳が上だが、眺めて立派なのは雄阿寒岳」とし、
「阿寒湖に活を入れているのは、雄阿寒岳である」
と記した。
"); map.addLayer(markers[104]); function flyto_104() { //目次と連動 map.flyTo(new L.LatLng(43.386242,144.009449),13); //マーカーの座標と連動 } markers[105] = L.marker([43.664472,142.854345], {icon:iconHokkaido}).bindTooltip("大雪山").bindPopup(" 
大雪山
だいせつざん Daisetsuzan 「たいせつ」とも
大雪山は、北海道中央部にそびえる火山群の名称
大雪山系という呼称もしばしば使われる
標高最高峰は旭岳で標高2,290m 北海道の最高峰
深田は、
大雪山の魅力を、大きな高原が沢山あるとし、
「あちこちに無造作に投げ出されている。この贅沢さ、この野放図さが、大雪山の魅力である」
と記した。
"); map.addLayer(markers[105]); function flyto_105() { //目次と連動 map.flyTo(new L.LatLng(43.664472,142.854345),13); //マーカーの座標と連動 } markers[106] = L.marker([43.527594,142.848870], {icon:iconHokkaido}).bindTooltip("トムラウシ").bindPopup(" 
トムラウシ
とむらうし Tomuraushi
北海道美瑛町,新得町
標高2,141m 「大雪の奥座敷」と称される
深田は、
「あれに登らねばならぬ。私はそう決心した」
「威厳があって、超俗のおもむきがある」
と記した。
"); map.addLayer(markers[106]); function flyto_106() { //目次と連動 map.flyTo(new L.LatLng(43.527594,142.848870),13); //マーカーの座標と連動 } markers[107] = L.marker([43.417896,142.686264], {icon:iconHokkaido}).bindTooltip("十勝岳").bindPopup(" 
十勝岳
とかちだけ Tokachidake
北海道美瑛町,上富良野町,新得町
標高十勝岳連峰の主峰 標高2,077m
深田は、
「大雪山の旭岳、トムラウシにつぐ北海道第三の高峰である。眺望の広𤄃なことは申すまでもない」
と記した。
"); map.addLayer(markers[107]); function flyto_107() { //目次と連動 map.flyTo(new L.LatLng(43.417896,142.686264),13); //マーカーの座標と連動 } markers[108] = L.marker([42.72,142.682737], {icon:iconHokkaido}).bindTooltip("幌尻岳").bindPopup(" 
幌尻岳
ぽろしりだけ Poroshiridake
日高山脈の主峰 標高2,052m
深田は、
「幌尻岳の圏谷は私の空想に強く残っていた」とし、
「憧れの風景が、現実に私の眼の前に現れた」
と記した。
"); map.addLayer(markers[108]); function flyto_108() { //目次と連動 map.flyTo(new L.LatLng(42.72,142.682737),13); //マーカーの座標と連動 } markers[109] = L.marker([42.828622,140.811574], {icon:iconHokkaido}).bindTooltip("後方羊蹄山").bindPopup(" 
後方羊蹄山
しりべしやま Shiribeshiyama
現在の名称は、羊蹄山(ようていざん Yōteizan)
北海道倶知安町,喜茂別町,京極町,真狩村,ニセコ町
標高1,898m
支笏洞爺国立公園に属し、蝦夷富士(えぞふじ)とも
深田は、
「ドッシリと重く、一種の圧迫を感じる」とし、
「眼をそばだたせる山」と表した。また、「単に羊蹄山と略して呼ぶことに対して私は強く反対する」として故事をひもときながら強く異を唱えている。
"); map.addLayer(markers[109]); function flyto_109() { //目次と連動 map.flyTo(new L.LatLng(42.828622,140.811574),13); //マーカーの座標と連動 }