// 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});
//地理院写真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/LimeGreen.png',iconSize:[32,32],iconAnchor: [10, 32],popupAnchor: [0, -31]});
// 表示するポイント・内容
markers[0] = L.marker([43.06417,141.34694], {icon:Icon01})
.bindPopup("
");
map.addLayer(markers[0] );
function flyto_01() {
map.flyTo(new L.LatLng(43.06417,141.34694),7);
}
markers[1] = L.marker([40.82444,140.74], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[1] );
function flyto_02() {
map.flyTo(new L.LatLng(40.82444,140.74),8);
}
markers[2] = L.marker([39.70361,141.1525], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[2] );
function flyto_03() {
map.flyTo(new L.LatLng(39.70361,141.1525),8);
}
markers[3] = L.marker([38.26889,140.87194], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[3] );
function flyto_04() {
map.flyTo(new L.LatLng(38.26889,140.87194),8);
}
markers[4] = L.marker([39.71861,140.1025], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[4] );
function flyto_05() {
map.flyTo(new L.LatLng(39.71861,140.1025),8);
}
markers[5] = L.marker([38.24056,140.36333], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[5] );
function flyto_06() {
map.flyTo(new L.LatLng(38.24056,140.36333),8);
}
markers[6] = L.marker([37.75,140.46778], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[6] );
function flyto_07() {
map.flyTo(new L.LatLng(37.75,140.46778),8);
}
markers[7] = L.marker([36.34139,140.44667], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[7] );
function flyto_08() {
map.flyTo(new L.LatLng(36.34139,140.44667),8);
}
markers[8] = L.marker([36.56583,139.88361], {icon:Icon01})
.bindPopup("[県庁所在地]
宇都宮市(うつのみやし)
Utsunomiya-shi
");
map.addLayer(markers[8] );
function flyto_09() {
map.flyTo(new L.LatLng(36.56583,139.88361),8);
}
markers[9] = L.marker([36.39111,139.06083], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[9] );
function flyto_10() {
map.flyTo(new L.LatLng(36.39111,139.06083),8);
}
markers[10] = L.marker([35.85694,139.64889], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[10] );
function flyto_11() {
map.flyTo(new L.LatLng(35.85694,139.64889),8);
}
markers[11] = L.marker([35.60472,140.12333], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[11] );
function flyto_12() {
map.flyTo(new L.LatLng(35.60472,140.12333),8);
}
markers[12] = L.marker([35.68944,139.69167], {icon:Icon01})
.bindPopup("東京都
とうきょうと
Tōkyō-to
(シンボル旗)
[都庁所在地]
新宿区(しんじゅくく)
Shinjuku-ku
Shinjuku City
");
map.addLayer(markers[12] );
function flyto_13() {
map.flyTo(new L.LatLng(35.68944,139.69167),8);
}
markers[13] = L.marker([35.44778,139.6425], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[13] );
function flyto_14() {
map.flyTo(new L.LatLng(35.44778,139.6425),8);
}
markers[14] = L.marker([37.90222,139.02361], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[14] );
function flyto_15() {
map.flyTo(new L.LatLng(37.90222,139.02361),8);
}
markers[15] = L.marker([36.69528,137.21139], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[15] );
function flyto_16() {
map.flyTo(new L.LatLng(36.69528,137.21139),8);
}
markers[16] = L.marker([36.59444,136.62556], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[16] );
function flyto_17() {
map.flyTo(new L.LatLng(36.59444,136.62556),8);
}
markers[17] = L.marker([36.06528,136.22194], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[17] );
function flyto_18() {
map.flyTo(new L.LatLng(36.06528,136.22194),8);
}
markers[18] = L.marker([35.66389,138.56833], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[18] );
function flyto_19() {
map.flyTo(new L.LatLng(35.66389,138.56833),8);
}
markers[19] = L.marker([36.65139,138.18111], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[19] );
function flyto_20() {
map.flyTo(new L.LatLng(36.65139,138.18111),8);
}
markers[20] = L.marker([35.39111,136.72222], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[20] );
function flyto_21() {
map.flyTo(new L.LatLng(35.39111,136.72222),8);
}
markers[21] = L.marker([34.97694,138.38306], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[21] );
function flyto_22() {
map.flyTo(new L.LatLng(34.97694,138.38306),8);
}
markers[22] = L.marker([35.18028,136.90667], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[22] );
function flyto_23() {
map.flyTo(new L.LatLng(35.18028,136.90667),8);
}
markers[23] = L.marker([34.73028,136.50861], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[23] );
function flyto_24() {
map.flyTo(new L.LatLng(34.73028,136.50861),8);
}
markers[24] = L.marker([35.00444,135.86833], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[24] );
function flyto_25() {
map.flyTo(new L.LatLng(35.00444,135.86833),8);
}
markers[25] = L.marker([35.02139,135.75556], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[25] );
function flyto_26() {
map.flyTo(new L.LatLng(35.02139,135.75556),8);
}
markers[26] = L.marker([34.68639,135.52], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[26] );
function flyto_27() {
map.flyTo(new L.LatLng(34.68639,135.52),8);
}
markers[27] = L.marker([34.69139,135.18306], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[27] );
function flyto_28() {
map.flyTo(new L.LatLng(34.69139,135.18306),8);
}
markers[28] = L.marker([34.68528,135.83278], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[28] );
function flyto_29() {
map.flyTo(new L.LatLng(34.68528,135.83278),8);
}
markers[29] = L.marker([34.22611,135.1675], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[29] );
function flyto_30() {
map.flyTo(new L.LatLng(34.22611,135.1675),8);
}
markers[30] = L.marker([35.50361,134.23833], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[30] );
function flyto_31() {
map.flyTo(new L.LatLng(35.50361,134.23833),8);
}
markers[31] = L.marker([35.47222,133.05056], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[31] );
function flyto_32() {
map.flyTo(new L.LatLng(35.47222,133.05056),8);
}
markers[32] = L.marker([34.66167,133.935], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[32] );
function flyto_33() {
map.flyTo(new L.LatLng(34.66167,133.935),8);
}
markers[33] = L.marker([34.39639,132.45944], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[33] );
function flyto_34() {
map.flyTo(new L.LatLng(34.39639,132.45944),8);
}
markers[34] = L.marker([34.18583,131.47139], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[34] );
function flyto_35() {
map.flyTo(new L.LatLng(34.18583,131.47139),8);
}
markers[35] = L.marker([34.06583,134.55944], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[35] );
function flyto_36() {
map.flyTo(new L.LatLng(34.06583,134.55944),8);
}
markers[36] = L.marker([34.34028,134.04333], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[36] );
function flyto_37() {
map.flyTo(new L.LatLng(34.34028,134.04333),8);
}
markers[37] = L.marker([33.84167,132.76611], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[37] );
function flyto_38() {
map.flyTo(new L.LatLng(33.84167,132.76611),8);
}
markers[38] = L.marker([33.55972,133.53111], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[38] );
function flyto_39() {
map.flyTo(new L.LatLng(33.55972,133.53111),8);
}
markers[39] = L.marker([33.60639,130.41806], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[39] );
function flyto_40() {
map.flyTo(new L.LatLng(33.60639,130.41806),8);
}
markers[40] = L.marker([33.24944,130.29889], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[40] );
function flyto_41() {
map.flyTo(new L.LatLng(33.24944,130.29889),8);
}
markers[41] = L.marker([32.74472,129.87361], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[41] );
function flyto_42() {
map.flyTo(new L.LatLng(32.74472,129.87361),8);
}
markers[42] = L.marker([32.78972,130.74167], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[42] );
function flyto_43() {
map.flyTo(new L.LatLng(32.78972,130.74167),8);
}
markers[43] = L.marker([33.23806,131.6125], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[43] );
function flyto_44() {
map.flyTo(new L.LatLng(33.23806,131.6125),8);
}
markers[44] = L.marker([31.91111,131.42389], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[44] );
function flyto_45() {
map.flyTo(new L.LatLng(31.91111,131.42389),8);
}
markers[45] = L.marker([31.56028,130.55806], {icon:Icon01})
.bindPopup("鹿児島県
かごしまけん
Kagoshima-ken
(シンボルマーク旗)
");
map.addLayer(markers[45] );
function flyto_46() {
map.flyTo(new L.LatLng(31.56028,130.55806),8);
}
markers[46] = L.marker([26.2125,127.68111], {icon:Icon01})
.bindPopup("");
map.addLayer(markers[46] );
function flyto_47() {
map.flyTo(new L.LatLng(26.2125,127.68111),8);
}