-
Notifications
You must be signed in to change notification settings - Fork 151
/
Copy pathicon2.html
46 lines (43 loc) · 1.63 KB
/
icon2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html><html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA==" crossorigin=""/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg==" crossorigin=""></script>
<script src="egmap.js"></script>
<script>"use strict"
window.onload = function() {
var map = initMap('mapid')
map.setZoom(4)
map.panTo([ 35.943560,136.188917 ]) // 鯖江駅
// map.panTo([ 35.944571, 136.186228 ]) // Hana道場
// map.addIcon(35.943560, 136.188917, "鯖江駅")
map.addIcon(35.944571, 136.186228 , "<a href=http://hanadojo.com/ target=_blank>Hana道場</a>", "icon-hanadojo.png", 64)
// map.addIcon(35.944571, 136.186228 , function() { window.open("http://hanadojo.com/", "_blank") }, "icon-hanadojo.png", 64)
}
</script>
<style>
body {
margin: 0;
font-family: sans-serif;
text-align: center;
}
h1 {
font-size: 5vw;
margin: 0;
}
#mapid {
height: 60vh;
}
.leaflet-tile-container { /* 地図の色味変更 CSS3 filter */
x-filter: sepia(100%) brightness(95%); /* セピア */
x-filter: grayscale(100%) brightness(110%); /* 明るめグレースケール */
filter: hue-rotate(-10deg) saturate(70%) brightness(104%); /* いい感じの色? */
}
</style>
</Head>
<body>
<h1>egmap.js - Leaflet x 地理院地図</h1>
<div id="mapid"></div>
</body>
</html>