-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from dayjournal/dev
v1.5.0
- Loading branch information
Showing
12 changed files
with
507 additions
and
512 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,63 @@ | ||
|
||
//MIERUNE Color | ||
const m_color = new L.tileLayer("https://tile.mierune.co.jp/mierune/{z}/{x}/{y}.png", { | ||
attribution: "Maptiles by <a href='http://mierune.co.jp/' target='_blank'>MIERUNE</a>, under CC BY. Data by <a href='http://osm.org/copyright' target='_blank'>OpenStreetMap</a> contributors, under ODbL." | ||
const m_color = new L.tileLayer('https://tile.mierune.co.jp/mierune/{z}/{x}/{y}.png', { | ||
attribution: | ||
"Maptiles by <a href='http://mierune.co.jp/' target='_blank'>MIERUNE</a>, under CC BY. Data by <a href='http://osm.org/copyright' target='_blank'>OpenStreetMap</a> contributors, under ODbL.", | ||
}); | ||
|
||
//MIERUNE MONO | ||
const m_mono = new L.tileLayer("https://tile.mierune.co.jp/mierune_mono/{z}/{x}/{y}.png", { | ||
attribution: "Maptiles by <a href='http://mierune.co.jp/' target='_blank'>MIERUNE</a>, under CC BY. Data by <a href='http://osm.org/copyright' target='_blank'>OpenStreetMap</a> contributors, under ODbL." | ||
const m_mono = new L.tileLayer('https://tile.mierune.co.jp/mierune_mono/{z}/{x}/{y}.png', { | ||
attribution: | ||
"Maptiles by <a href='http://mierune.co.jp/' target='_blank'>MIERUNE</a>, under CC BY. Data by <a href='http://osm.org/copyright' target='_blank'>OpenStreetMap</a> contributors, under ODbL.", | ||
}); | ||
|
||
//OSM | ||
const o_std = new L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { | ||
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' | ||
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors', | ||
}); | ||
|
||
//GSI Pale | ||
const t_pale = new L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/pale/{z}/{x}/{y}.png', { | ||
attribution: "<a href='http://www.gsi.go.jp/kikakuchousei/kikakuchousei40182.html' target='_blank'>国土地理院</a>", | ||
attribution: | ||
"<a href='http://www.gsi.go.jp/kikakuchousei/kikakuchousei40182.html' target='_blank'>国土地理院</a>", | ||
}); | ||
|
||
//GSI Ort | ||
const t_ort = new L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/ort/{z}/{x}/{y}.jpg', { | ||
attribution: "<a href='http://www.gsi.go.jp/kikakuchousei/kikakuchousei40182.html' target='_blank'>国土地理院</a>", | ||
attribution: | ||
"<a href='http://www.gsi.go.jp/kikakuchousei/kikakuchousei40182.html' target='_blank'>国土地理院</a>", | ||
}); | ||
|
||
//MAP | ||
const map = L.map('map', { | ||
center: [35.6831925, 139.7511307], | ||
zoom: 13, | ||
zoomControl: true, | ||
layers: [m_mono] | ||
layers: [m_mono], | ||
}); | ||
|
||
//BaseLayer | ||
const Map_BaseLayer = { | ||
"MIERUNE Color": m_color, | ||
"MIERUNE MONO": m_mono | ||
'MIERUNE Color': m_color, | ||
'MIERUNE MONO': m_mono, | ||
}; | ||
|
||
//AddLayer | ||
const Map_AddLayer = { | ||
"OSM": o_std, | ||
"GSI Pale": t_pale, | ||
"GSI Ort": t_ort | ||
'OSM': o_std, | ||
'GSI Pale': t_pale, | ||
'GSI Ort': t_ort, | ||
}; | ||
|
||
//LayerControl | ||
L.control.layers( | ||
Map_BaseLayer, | ||
Map_AddLayer, | ||
{ | ||
collapsed: false | ||
} | ||
).addTo(map); | ||
L.control | ||
.layers(Map_BaseLayer, Map_AddLayer, { | ||
collapsed: false, | ||
}) | ||
.addTo(map); | ||
|
||
//OpacityControl | ||
L.control.opacity( | ||
Map_AddLayer, | ||
{ | ||
label: "Layers Opacity" | ||
} | ||
).addTo(map); | ||
L.control | ||
.opacity(Map_AddLayer, { | ||
label: 'Layers Opacity', | ||
}) | ||
.addTo(map); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.