// 各都道府県のほぼ中心点の緯度経度(県庁所在地ではない)
// 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});
//地理院写真2007~
ort = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/ort/{z}/{x}/{y}.jpg', {attribution: mbAttr});
//地理院写真1988~90
gazo4 = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/gazo4/{z}/{x}/{y}.jpg', {attribution: mbAttr});
//地理院写真2004~
airphoto = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/airphoto/{z}/{x}/{y}.png', {attribution: mbAttr});
//地理院写真1984~86
gazo3 = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/gazo3/{z}/{x}/{y}.jpg', {attribution: mbAttr});
//地理院写真1979~83
gazo2 = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/gazo2/{z}/{x}/{y}.jpg', {attribution: mbAttr});
//地理院写真1974~78
gazo1 = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/gazo1/{z}/{x}/{y}.jpg', {attribution: mbAttr});
//地理院写真1961~69
ort_old10 = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/ort_old10/{z}/{x}/{y}.png', {attribution: mbAttr});
//地理院写真(1945年~1950年)
GSIort_USA10 = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/ort_USA10/{z}/{x}/{y}.png', {attribution: mbAttr});
//地理院写真1936頃(東京23区)
ort_riku10 = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/ort_riku10/{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: [35.173808,138.779297], zoom: 5, layers: [GSIBLANK]});
//住所検索枠を表示
var osmGeocoder = new L.Control.OSMGeocoder({ position: "topright", placeholder: '住所・キーワード入力',text: '検索'});
map.addControl(osmGeocoder);
var baseMaps = {
"地理院白地図": GSIBLANK,
"地理院地図": GSISTD,
"地理院写真": GSIPHOTO,
" ┗ 2007~" : ort,
" ┗ 2004~" : airphoto,
" ┗ 1988~90" : gazo4,
" ┗ 1984~86" : gazo3,
" ┗ 1979~83" : gazo2,
" ┗ 1974~78" : gazo1,
" ┗ 1961~69" : ort_old10,
" ┗ 1945年~1950年": GSIort_USA10,
" ┗ 1936頃(東京23区)" : ort_riku10,
"地理院淡色地図": GSIPALE,
"地理院色別標高図": GSIrelief,
"地理院陰影起伏図": GSIshade,
"地理院傾斜量図": GSIslopemap,
"地理院アナグリフ": GSIanaglyph,
"地理院 English": GSIenglish,
"OpenStreetMap": OSM,
"Esri 道路地図": esri_worldStreet,
"Esri 衛星画像": esri_worldimagery,
"Esri 地形図": esri_worldtopo,
"Google マップ": google_maps
};
var overlay = {
"地理院地図": 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 Icon01= L.icon({iconUrl:'/map_icon_Leaflet/icon-with_shadow/DeepPink.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]});
// 表示するポイント・内容
markers[0] = L.marker([43.420962,142.781281], {icon:Icon01})
.bindPopup("
");
map.addLayer(markers[0] );
function flyto_01() {
map.flyTo(new L.LatLng(43.420962,142.781281),7);
}
markers[1] = L.marker([40.699056,140.726924], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[1] );
function flyto_02() {
map.flyTo(new L.LatLng(40.699056,140.726924),8);
}
markers[2] = L.marker([39.511756,141.399429], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[2] );
function flyto_03() {
map.flyTo(new L.LatLng(39.511756,141.399429),8);
}
markers[3] = L.marker([38.381565,140.941651], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[3] );
function flyto_04() {
map.flyTo(new L.LatLng(38.381565,140.941651),8);
}
markers[4] = L.marker([39.678886,140.392163], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[4] );
function flyto_05() {
map.flyTo(new L.LatLng(39.678886,140.392163),8);
}
markers[5] = L.marker([38.497668,140.108578], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[5] );
function flyto_06() {
map.flyTo(new L.LatLng(38.497668,140.108578),8);
}
markers[6] = L.marker([37.418743,140.231252], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[6] );
function flyto_07() {
map.flyTo(new L.LatLng(37.418743,140.231252),8);
}
markers[7] = L.marker([36.304975,140.385361], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[7] );
function flyto_08() {
map.flyTo(new L.LatLng(36.304975,140.385361),8);
}
markers[8] = L.marker([36.683168,139.817955], {icon:Icon01})
.bindPopup("[県庁所在地]
宇都宮市(うつのみやし)
Utsunomiya-shi
");
map.addLayer(markers[8] );
function flyto_09() {
map.flyTo(new L.LatLng(36.683168,139.817955),8);
}
markers[9] = L.marker([36.481484,138.923514], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[9] );
function flyto_10() {
map.flyTo(new L.LatLng(36.481484,138.923514),8);
}
markers[10] = L.marker([36.003615,139.368331], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[10] );
function flyto_11() {
map.flyTo(new L.LatLng(36.003615,139.368331),8);
}
markers[11] = L.marker([35.473969,140.222304], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[11] );
function flyto_12() {
map.flyTo(new L.LatLng(35.473969,140.222304),8);
}
markers[12] = L.marker([35.686991,139.539242], {icon:Icon01})
.bindPopup("東京都
とうきょうと
Tōkyō-to
(シンボル旗)
[都庁所在地]
新宿区(しんじゅくく)
Shinjuku-ku
Shinjuku City
");
map.addLayer(markers[12] );
function flyto_13() {
map.flyTo(new L.LatLng(35.686991,139.539242),8);
}
markers[13] = L.marker([35.403620,139.349213], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[13] );
function flyto_14() {
map.flyTo(new L.LatLng(35.403620,139.349213),8);
}
markers[14] = L.marker([37.368708,138.888731], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[14] );
function flyto_15() {
map.flyTo(new L.LatLng(37.368708,138.888731),8);
}
markers[15] = L.marker([36.607484,137.287216], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[15] );
function flyto_16() {
map.flyTo(new L.LatLng(36.607484,137.287216),8);
}
markers[16] = L.marker([36.772391,136.778841], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[16] );
function flyto_17() {
map.flyTo(new L.LatLng(36.772391,136.778841),8);
}
markers[17] = L.marker([35.812610,136.184399], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[17] );
function flyto_18() {
map.flyTo(new L.LatLng(35.812610,136.184399),8);
}
markers[18] = L.marker([35.609615,138.628685], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[18] );
function flyto_19() {
map.flyTo(new L.LatLng(35.609615,138.628685),8);
}
markers[19] = L.marker([36.149935,138.024588], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[19] );
function flyto_20() {
map.flyTo(new L.LatLng(36.149935,138.024588),8);
}
markers[20] = L.marker([35.778724,137.057877], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[20] );
function flyto_21() {
map.flyTo(new L.LatLng(35.778724,137.057877),8);
}
markers[21] = L.marker([35.033282,138.312185], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[21] );
function flyto_22() {
map.flyTo(new L.LatLng(35.033282,138.312185),8);
}
markers[22] = L.marker([35.002511,137.208724], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[22] );
function flyto_23() {
map.flyTo(new L.LatLng(35.002511,137.208724),8);
}
markers[23] = L.marker([34.484291,136.432514], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[23] );
function flyto_24() {
map.flyTo(new L.LatLng(34.484291,136.432514),8);
}
markers[24] = L.marker([35.225920,136.139617], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[24] );
function flyto_25() {
map.flyTo(new L.LatLng(35.225920,136.139617),8);
}
markers[25] = L.marker([35.220152,135.517902], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[25] );
function flyto_26() {
map.flyTo(new L.LatLng(35.220152,135.517902),8);
}
markers[26] = L.marker([34.598366,135.545261], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[26] );
function flyto_27() {
map.flyTo(new L.LatLng(34.598366,135.545261),8);
}
markers[27] = L.marker([35.068625,134.794436], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[27] );
function flyto_28() {
map.flyTo(new L.LatLng(35.068625,134.794436),8);
}
markers[28] = L.marker([34.292803,135.896845], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[28] );
function flyto_29() {
map.flyTo(new L.LatLng(34.292803,135.896845),8);
}
markers[29] = L.marker([33.848677,135.416815], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[29] );
function flyto_30() {
map.flyTo(new L.LatLng(33.848677,135.416815),8);
}
markers[30] = L.marker([35.391534,133.850276], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[30] );
function flyto_31() {
map.flyTo(new L.LatLng(35.391534,133.850276),8);
}
markers[31] = L.marker([34.975087,132.423277], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[31] );
function flyto_32() {
map.flyTo(new L.LatLng(34.975087,132.423277),8);
}
markers[32] = L.marker([34.861972,133.833990], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[32] );
function flyto_33() {
map.flyTo(new L.LatLng(34.861972,133.833990),8);
}
markers[33] = L.marker([34.588492,132.792091], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[33] );
function flyto_34() {
map.flyTo(new L.LatLng(34.588492,132.792091),8);
}
markers[34] = L.marker([34.226281,131.430559], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[34] );
function flyto_35() {
map.flyTo(new L.LatLng(34.226281,131.430559),8);
}
markers[35] = L.marker([33.915461,134.273465], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[35] );
function flyto_36() {
map.flyTo(new L.LatLng(33.915461,134.273465),8);
}
markers[36] = L.marker([34.219680,133.979044], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[36] );
function flyto_37() {
map.flyTo(new L.LatLng(34.219680,133.979044),8);
}
markers[37] = L.marker([33.661193,132.838719], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[37] );
function flyto_38() {
map.flyTo(new L.LatLng(33.661193,132.838719),8);
}
markers[38] = L.marker([33.507085,133.364174], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[38] );
function flyto_39() {
map.flyTo(new L.LatLng(33.507085,133.364174),8);
}
markers[39] = L.marker([33.599679,130.682867], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[39] );
function flyto_40() {
map.flyTo(new L.LatLng(33.599679,130.682867),8);
}
markers[40] = L.marker([33.279436,130.118294], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[40] );
function flyto_41() {
map.flyTo(new L.LatLng(33.279436,130.118294),8);
}
markers[41] = L.marker([32.955619,129.715641], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[41] );
function flyto_42() {
map.flyTo(new L.LatLng(32.955619,129.715641),8);
}
markers[42] = L.marker([32.587230,130.807836], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[42] );
function flyto_43() {
map.flyTo(new L.LatLng(32.587230,130.807836),8);
}
markers[43] = L.marker([33.203809,131.411655], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[43] );
function flyto_44() {
map.flyTo(new L.LatLng(33.203809,131.411655),8);
}
markers[44] = L.marker([32.200128,131.353483], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[44] );
function flyto_45() {
map.flyTo(new L.LatLng(32.200128,131.353483),8);
}
markers[45] = L.marker([31.355836,130.410976], {icon:Icon01})
.bindPopup("鹿児島県
かごしまけん
Kagoshima-ken
(シンボルマーク旗)
");
map.addLayer(markers[45] );
function flyto_46() {
map.flyTo(new L.LatLng(31.355836,130.410976),8);
}
markers[46] = L.marker([26.477084,127.922927], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[46] );
function flyto_47() {
map.flyTo(new L.LatLng(26.477084,127.922927),8);
}