-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-map-three.html
187 lines (141 loc) · 9.12 KB
/
test-map-three.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html>
<html>
<head>
<title>Wayfinding example</title>
<meta charset="UTF-8">
<meta name="description" content="" />
<meta name="keywords" content="" />
<!--
<link href='https://fonts.googleapis.com/css?family=Abel' rel='stylesheet' type='text/css'>
-->
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">-->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<h2>Wayfinding example</h2>
<!-- xmlns="http://www.w3.org/2000/svg" -->
<svg id="map" viewBox="0 0 216 176">
<defs>
<style>
.cls-1 {
fill: #f73c95;
}
.cls-2 {
fill: #8cc63f;
}
.cls-3 {
fill: #29abe2;
}
.cls-4 {
fill: #fbb03b;
}
.cls-5 {
fill: #fff;
}
.cls-6 {
fill: #ed1c24;
}
/*
.cat:hover, .projector:hover, .airplane:hover {
fill: blue;
}
*/
.eye {
fill: #fff;
display: block;
padding: 20px;
}
.eye:hover {
fill: blue;
}
.projector {
}
.airplane {
fill: red;
}
.airplane:hover {
fill: blue;
}
</style>
</defs>
<title>Map</title>
<g id="rooms" data-name="Room Shape">
<g id="Layer_1-2" data-name="Layer 1">
<rect class="cls-1" width="144" height="122" />
<rect class="cls-2" x="144" width="72" height="61" />
<rect class="cls-3" x="144" y="61" width="72" height="61" />
<path class="cls-4" d="M161,122a54,54,0,0,1-108,0Z" />
<path class="cls-5 cat" d="M82,50.81a2.84,2.84,0,0,1-1.11,2l-3,.26a1.25,1.25,0,0,0-.9.55,1.66,1.66,0,0,0-.38,1,4.31,4.31,0,0,0,.67,2.07A4.7,4.7,0,0,1,77.9,59a29.56,29.56,0,0,1-.26,3.23,29.56,29.56,0,0,0-.26,3.23q0,.58-.07,1.71t-.07,1.71q0,.38.06,1.18t.06,1.18a.79.79,0,0,0,.51.84q.51.18.51.52a2.57,2.57,0,0,1,0,.36H76q1.07.43,1.07.92t-1.37.58a1.33,1.33,0,0,1-1.3-.62,3.74,3.74,0,0,1-.21-1.52q0-.62,0-1.85t0-1.85a15.24,15.24,0,0,0-1.37-6.78.66.66,0,0,0,0,.28,4.06,4.06,0,0,0,.43,1.52,5.62,5.62,0,0,1,.49,1.5q.41,3.83.41,4.43a7.93,7.93,0,0,1-.2,1.51,9,9,0,0,0-.2,1.19,1.18,1.18,0,0,0,.18.35,1.09,1.09,0,0,1,.18.59q0,1.07-3.21,1.07a2.87,2.87,0,0,1-1.8-.38,5.21,5.21,0,0,1-4.32-2.54,7.65,7.65,0,0,1-3.66-1.65,4.31,4.31,0,0,1-1.62-3.36,8.34,8.34,0,0,1,.73-3,8.13,8.13,0,0,0,.73-2.54q0-2.54-2.84-3.48-1.3-.43-1.3-.79,0-.6.66-.6a4.59,4.59,0,0,1,3.43,1.51A4.93,4.93,0,0,1,62.34,61a7.56,7.56,0,0,1-.73,2.89,7.27,7.27,0,0,0-.73,2.42A3.16,3.16,0,0,0,62,68.77a4.38,4.38,0,0,0,2.59,1,21.44,21.44,0,0,1,3.61-11.37,26.62,26.62,0,0,1,2.54-3.3A27.87,27.87,0,0,0,73.2,52q.75-1.26,1.48-2.54a5.47,5.47,0,0,1,1.9-2.07,2.51,2.51,0,0,1,0-.45,3.26,3.26,0,0,1,.62-1.45,2.64,2.64,0,0,1,.75,1,2.18,2.18,0,0,1,1.2-1.13,2.37,2.37,0,0,1,.32,1,1.62,1.62,0,0,1-.13.6,1.54,1.54,0,0,1,1.26,1,11.81,11.81,0,0,0,.73,1.52A2.48,2.48,0,0,1,82,50.81Zm-5.24,2.61-1.37-.92a3.81,3.81,0,0,1-1.26-1.6L73.52,52a15,15,0,0,0,2.82,2.48Zm.56,6.91q0-1.33,0-2-.15,1.56-.6,4.64A8.58,8.58,0,0,0,77.3,60.32Zm3.27-11.27a1.23,1.23,0,0,0-.73-.32q-.3,0-.66.53a1,1,0,0,0,.66.3Q80.19,49.57,80.57,49.06Zm-.36.11q0,.32-.3.32a.28.28,0,0,1-.32-.32q0-.3.32-.3A.26.26,0,0,1,80.21,49.16Zm1.62,1.6-.45,0,.26.51Z" />
<g class="eye">
<path d="M194.5,31.87a14.3,14.3,0,0,1-3.09,3.87,17.29,17.29,0,0,1-21.86,0,14.56,14.56,0,0,1-3.11-3.87A14.81,14.81,0,0,1,169.55,28a17.29,17.29,0,0,1,21.86,0A14.54,14.54,0,0,1,194.5,31.87Zm-8.84,0a4.83,4.83,0,0,0-1.52-3.58,5,5,0,0,0-3.66-1.49,5.14,5.14,0,0,0-2.14.46L177.79,26a11.69,11.69,0,0,0-8.68,5.84,11.18,11.18,0,0,0,1.93,2.5,12.47,12.47,0,0,0,6.7,3.32A6.4,6.4,0,0,1,175,35.35a6.14,6.14,0,0,1-1-3.48,6.4,6.4,0,0,1,.41-2.26l1.31.41a4.93,4.93,0,0,0-.36,1.85,4.82,4.82,0,0,0,1.52,3.59,5.27,5.27,0,0,0,7.32,0A4.82,4.82,0,0,0,185.65,31.87Zm-1.26,0a3.66,3.66,0,0,1-1.15,2.71,4,4,0,0,1-5.55,0,3.67,3.67,0,0,1-1.14-2.71,3.83,3.83,0,0,1,.25-1.36l4,1.81-1.88-4a3.93,3.93,0,0,1,4.32.8A3.66,3.66,0,0,1,184.39,31.87Zm7.44,0a11.27,11.27,0,0,0-1.95-2.52A12.44,12.44,0,0,0,183.12,26a6.4,6.4,0,0,1,2.81,2.31A6.19,6.19,0,0,1,187,31.87,6.11,6.11,0,0,1,186,35.35a6.45,6.45,0,0,1-2.77,2.34A11.64,11.64,0,0,0,191.83,31.87Z" />
</g>
<path class="cls-5 projector" d="M196,84.08a7,7,0,0,1-7,7,7.1,7.1,0,0,1-2.09-.31v2h.54v-1h2.17v5.53h-2.17v-.85h-.54v1.32H184.6v2.06h-11V97.79h-1.41V92.05a6,6,0,0,1,.62-11.89,5.91,5.91,0,0,1,5.38,3.38H182a7,7,0,0,1,14,.52Zm-25.39,4.2a1.44,1.44,0,0,0,.29-1q0-1.39-.82-1.52l-1.91-.26a3.13,3.13,0,0,0-.07.87,4.53,4.53,0,0,0,.43,1.9,2.69,2.69,0,0,0,1,1.28Zm1.7-4.72q0-.59-.08-2l-.4,0-.29,0a2.86,2.86,0,0,0-1.88.77,3.59,3.59,0,0,0-1.18,1.73l2,.83a1.09,1.09,0,0,0,.43.08,1.35,1.35,0,0,0,1.23-.87v-.59ZM172.16,91V88.18a1.46,1.46,0,0,0-.46.47l-1,1.73A2.37,2.37,0,0,0,172.16,91Zm4.68-7.41a3.76,3.76,0,0,0-1.32-1.43,2.9,2.9,0,0,0-1.78-.58h-.33q-.07.87,0,2Zm9.3,0-2.78-.43,0,.43Zm2.29-2.6-.23-2.37a2.56,2.56,0,0,0-.59-.07,3.88,3.88,0,0,0-2.37,1,4.22,4.22,0,0,0-1.55,2.09q.49.21,2.62,1a1.31,1.31,0,0,0,.49.1,1.55,1.55,0,0,0,1.19-.6A1.44,1.44,0,0,0,188.43,81Zm-1,3.89-.52-.13v1.32Zm4.41,4.27-1.21-2a1.78,1.78,0,0,0-1.46-1,1.57,1.57,0,0,0-1.46.82l-.82,1.41v1a5,5,0,0,0,2.45.51A3.53,3.53,0,0,0,191.83,89.16Zm-2-5.72a.82.82,0,0,0-.66-.28,1,1,0,0,0-.49.11l-.33-.31-.28.28.31.34a.7.7,0,0,0-.13.47.9.9,0,0,0,.25.7.93.93,0,0,0,.65.23.87.87,0,0,0,.65-.27.91.91,0,0,0,.26-.66A.93.93,0,0,0,189.81,83.44Zm4.1-2a4,4,0,0,0-1.54-1.95,3.89,3.89,0,0,0-2.27-1l-.38,0q-.08,1-.07,2.49a1.39,1.39,0,0,0,.67,1.19,1.83,1.83,0,0,0,1,.39,5.32,5.32,0,0,0,1.41-.6Zm.9,2.81a2.28,2.28,0,0,0-.28-1.24l-1.52.38a2.64,2.64,0,0,0-1.11.7q-.65.6-.65,1a2.36,2.36,0,0,0,.72,1.7l1.29,1.28a3.05,3.05,0,0,0,1.16-1.7A6.34,6.34,0,0,0,194.81,84.26Z" />
</g>
</g>
<g class="airplane">
<path d="M103.06,148.29l-10.69-1.5,1-3.09,11.44-.85,2-6.26q.69-2.11,2.09-2.11a2.15,2.15,0,0,1,1.41.48,1.58,1.58,0,0,1,.59,1.28,5.39,5.39,0,0,1-.31,1.57l-2,6.21,8.88,7.5-1,3.09-9.65-5.13-2.11,6.46,2.22,4.64-.75,2.32-4.14-5.22-6.43,1.78.75-2.32,4.58-2.47Z" />
</g>
</svg>
<div class="text-info text-museum">
<div class="text-museum-head">
<h2 class="text-museum-title">Otago Museum</h2>
<svg class="x" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60">
<path d="M39.707 20.293c-.195-.195-.512-.195-.707 0l-9 9-9-9c-.195-.195-.512-.195-.707 0s-.195.512 0 .707l9 9-9 9c-.195.195-.195.512 0 .707.098.098.226.147.353.147s.256-.05.354-.147l9-9 9 9c.098.098.226.147.354.147s.255-.05.353-.147c.195-.195.195-.512 0-.707l-9-9 9-9c.195-.195.195-.512 0-.707z"/>
<path d="M30 .5C13.733.5.5 13.733.5 30S13.733 59.5 30 59.5 59.5 46.267 59.5 30 46.267.5 30 .5zm0 58C14.285 58.5 1.5 45.715 1.5 30S14.285 1.5 30 1.5 58.5 14.285 58.5 30 45.715 58.5 30 58.5z"/>
</svg>
</div>
<table>
<tbody>
<tr>
<td>Otago Museum</td>
<td>10am–5pm daily, closed Christmas Day</td>
</tr>
<tr>
<td>Café</td>
<td>9am–5pm daily, closed Christmas Day</td>
</tr>
<tr>
<td>Shop</td>
<td>9am–5pm daily, closed Christmas Day</td>
</tr>
<tr>
<td>Address</td>
<td>419 Great King Street<br>Dunedin 9016
PO Box 6202<br> Phone: 03 474 7474<br>Website: <a href="https://www.otagomuseum.co.nz">otagomuseum.co.nz</a></td>
</tr>
</tbody>
</table>
</div>
<script src='https://code.jquery.com/jquery-3.0.0-alpha1.js'></script>
<script>
var airPlane = $(".airplane");
airPlane.on("click", function() {
$("*").removeClass("show");
$(".text-info").addClass("show");
});
var hidePopup = $(".text-info");
hidePopup.on("click", function() {
$(".text-info").removeClass("show");
});
// $(".hotspot").on("click", function() {
// var area = this.getAttribute('data-name');
// $(".x-out").attr("data-info", area);
// zoomIn(area);
// });
//
// $(".x-out").on("click", function() {
// var area = this.getAttribute('data-info');
// zoomOut(area);
// });
</script>
<!--
<script>
var allRooms = $("svg.rooms > *");
allRooms.on("click", function() {
allRooms.removeClass("on");
$(this).addClass("on");
});
</script>
-->
</body>
</html>