Skip to content

Commit

Permalink
Merge pull request #22 from dayjournal/dev
Browse files Browse the repository at this point in the history
v1.5.0
  • Loading branch information
dayjournal authored Mar 21, 2021
2 parents 2000993 + fcc09f6 commit e5e4c82
Show file tree
Hide file tree
Showing 12 changed files with 507 additions and 512 deletions.
290 changes: 144 additions & 146 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/L.Control.Opacity.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/L.Control.Opacity.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions docs/css/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
html, body {
html,
body {
height: 100%;
padding: 0;
margin: 0;
Expand All @@ -7,4 +8,4 @@ html, body {
#map {
z-index: 0;
height: 100%;
}
}
54 changes: 27 additions & 27 deletions docs/js/app.js
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: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
attribution: '&copy; <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.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e5e4c82

Please sign in to comment.