// 世界の主な内陸国 - ヨーロッパ // 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: [44.777936,9.052734], zoom: 4, layers: [OSM]}); //住所検索枠を表示 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()); }); //}).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, "地理院地図": 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(); } // 表示するポイント・内容 // 「markers[0]」は、連番でなくてはならない !! var Icon02= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/Tomato.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); markers[1]=L.marker([42.5063174,1.5218355],{icon:Icon02}).addTo(map) .bindTooltip("アンドラ").bindPopup(" 
 アンドラ公国
Principality of Andorra
緯度,経度:42.5063174,1.5218355
 
"); map.addLayer(markers[1]); function flyto_1() { //目次と連動 map.flyTo(new L.LatLng(42.5063174,1.5218355),5); //マーカーの座標と連動 } var Icon03= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/Tomato.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); markers[2]=L.marker([48.2081743,16.3738189],{icon:Icon03}).addTo(map) .bindTooltip("オーストリア").bindPopup(" 
 オーストリア共和国
Republic of Austria
緯度,経度:48.2081743,16.3738189
 
"); map.addLayer(markers[2]); function flyto_2() { //目次と連動 map.flyTo(new L.LatLng(48.2081743,16.3738189),5); //マーカーの座標と連動 } var Icon04= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/Tomato.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); markers[3]=L.marker([41.9973462,21.4279956],{icon:Icon04}).addTo(map) .bindTooltip("北マケドニア").bindPopup(" 
 北マケドニア共和国
Republic of North Macedonia
緯度,経度:41.9973462,21.4279956
 
"); map.addLayer(markers[3]); function flyto_3() { //目次と連動 map.flyTo(new L.LatLng(41.9973462,21.4279956),5); //マーカーの座標と連動 } var Icon05= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/Tomato.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); markers[4]=L.marker([42.6629138,21.1655028],{icon:Icon05}).addTo(map) .bindTooltip("コソボ").bindPopup(" 
 コソボ共和国
Republic of Kosovo
緯度,経度:42.6629138,21.1655028
 
"); map.addLayer(markers[4]); function flyto_4() { //目次と連動 map.flyTo(new L.LatLng(42.6629138,21.1655028),5); //マーカーの座標と連動 } var Icon06= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/Tomato.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); markers[5]=L.marker([43.9355907,12.4472806],{icon:Icon06}).addTo(map) .bindTooltip("サンマリノ").bindPopup(" 
 サンマリノ共和国
Republic of San Marino
緯度,経度:43.9355907,12.4472806
 
"); map.addLayer(markers[5]); function flyto_5() { //目次と連動 map.flyTo(new L.LatLng(43.9355907,12.4472806),5); //マーカーの座標と連動 } var Icon07= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/Tomato.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); markers[6]=L.marker([46.9479739,7.4474468],{icon:Icon07}).addTo(map) .bindTooltip("スイス").bindPopup(" 
 スイス連邦
Swiss Confederation
緯度,経度:46.9479739,7.4474468
 
"); map.addLayer(markers[6]); function flyto_6() { //目次と連動 map.flyTo(new L.LatLng(46.9479739,7.4474468),5); //マーカーの座標と連動 } var Icon08= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/Tomato.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); markers[7]=L.marker([48.1485965,17.1077478],{icon:Icon08}).addTo(map) .bindTooltip("スロバキア").bindPopup(" 
 スロバキア共和国
Slovak Republic
緯度,経度:48.1485965,17.1077478
 
"); map.addLayer(markers[7]); function flyto_7() { //目次と連動 map.flyTo(new L.LatLng(48.1485965,17.1077478),5); //マーカーの座標と連動 } var Icon09= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/Tomato.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); markers[8]=L.marker([44.786568,20.4489216],{icon:Icon09}).addTo(map) .bindTooltip("セルビア").bindPopup(" 
 セルビア共和国
Republic of Serbia
緯度,経度:44.786568,20.4489216
 
"); map.addLayer(markers[8]); function flyto_8() { //目次と連動 map.flyTo(new L.LatLng(44.786568,20.4489216),5); //マーカーの座標と連動 } var Icon10= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/Tomato.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); markers[9]=L.marker([50.0755381,14.4378005],{icon:Icon10}).addTo(map) .bindTooltip("チェコ").bindPopup(" 
 チェコ共和国
Czech Republic
緯度,経度:50.0755381,14.4378005
 
"); map.addLayer(markers[9]); function flyto_9() { //目次と連動 map.flyTo(new L.LatLng(50.0755381,14.4378005),5); //マーカーの座標と連動 } var Icon11= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/Tomato.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); markers[10]=L.marker([41.902916,12.453389],{icon:Icon11}).addTo(map) .bindTooltip("バチカン").bindPopup(" 
 バチカン
Vatican
緯度,経度:41.902916,12.453389
 
"); map.addLayer(markers[10]); function flyto_10() { //目次と連動 map.flyTo(new L.LatLng(41.902916,12.453389),5); //マーカーの座標と連動 } var Icon12= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/Tomato.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); markers[11]=L.marker([47.497912,19.040235],{icon:Icon12}).addTo(map) .bindTooltip("ハンガリー").bindPopup(" 
 ハンガリー
Hungary
緯度,経度:47.497912,19.040235
 
"); map.addLayer(markers[11]); function flyto_11() { //目次と連動 map.flyTo(new L.LatLng(47.497912,19.040235),5); //マーカーの座標と連動 } var Icon13= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/Tomato.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); markers[12]=L.marker([53.9045398,27.5615244],{icon:Icon13}).addTo(map) .bindTooltip("ベラルーシ").bindPopup(" 
 ベラルーシ共和国
Republic of Belarus
緯度,経度:53.9045398,27.5615244
 
"); map.addLayer(markers[12]); function flyto_12() { //目次と連動 map.flyTo(new L.LatLng(53.9045398,27.5615244),5); //マーカーの座標と連動 } var Icon14= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/Tomato.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); markers[13]=L.marker([47.0104529,28.8638102],{icon:Icon14}).addTo(map) .bindTooltip("モルドバ").bindPopup(" 
 モルドバ共和国
Republic of Moldova
緯度,経度:47.0104529,28.8638102
 
"); map.addLayer(markers[13]); function flyto_13() { //目次と連動 map.flyTo(new L.LatLng(47.0104529,28.8638102),5); //マーカーの座標と連動 } var Icon15= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/Tomato.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); markers[14]=L.marker([47.1410303,9.5209277],{icon:Icon15}).addTo(map) .bindTooltip("リヒテンシュタイン").bindPopup(" 
 リヒテンシュタイン公国
Principality of Liechtenstein
緯度,経度:47.1410303,9.5209277
 
"); map.addLayer(markers[14]); function flyto_14() { //目次と連動 map.flyTo(new L.LatLng(47.1410303,9.5209277),5); //マーカーの座標と連動 } var Icon16= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/Tomato.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); markers[15]=L.marker([49.611621,6.1319346],{icon:Icon16}).addTo(map) .bindTooltip("ルクセンブルク").bindPopup(" 
 ルクセンブルク大公国
Grand Duchy of Luxembourg
緯度,経度:49.611621,6.1319346
 
"); map.addLayer(markers[15]); function flyto_15() { //目次と連動 map.flyTo(new L.LatLng(49.611621,6.1319346),5); //マーカーの座標と連動 } var Icon21= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/Gainsboro.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]}); markers[20]=L.marker([35.6895, 139.691694],{icon:Icon21}).addTo(map) .bindTooltip("東京都庁").bindPopup(" 
《東京都庁》
 北緯 35°41′22.2″ 東経 139°41′30.1″
 
"); map.addLayer(markers[20]); function flyto_20() { //目次と連動 map.flyTo(new L.LatLng(35.6895, 139.691694),16); //マーカーの座標と連動 }