-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
153 lines (152 loc) · 5.14 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="theme-color" content="#ff5575" />
<title>Карта МЦД</title>
<link rel="shortcut icon" href="data/favicon.gif" />
<meta
name="viewport"
content="initial-scale=1,maximum-scale=1,user-scalable=no"
/>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v1.2.0/mapbox-gl.js"></script>
<link
href="https://api.tiles.mapbox.com/mapbox-gl-js/v1.2.0/mapbox-gl.css"
rel="stylesheet"
/>
<script src="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v4.4.1/mapbox-gl-geocoder.min.js"></script>
<link rel="stylesheet" href="./data/styles.css" type="text/css" />
<link
rel="stylesheet"
href="./data/mapbox-gl-geocoder.css"
type="text/css"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<script
type="text/javascript"
language="javascript"
src="stops.json"
></script>
<style>
body {
margin: 0;
padding: 0;
}
#map {
position: absolute;
bottom: 0;
width: 100%;
height: 100%;
transition: height 0.3s;
}
</style>
</head>
<body>
<div id="map"></div>
<div id="geocoder" class="geocoder">
<div id="header">
<button
id="pano"
data-title="Панорамы"
class="headerButton"
onclick="togglePano(event)"
>
<i class="fa fa-street-view"></i>
</button>
<button
id="iso"
data-title="5 мин. пешком"
class="headerButton"
onclick="toggleIso(event)"
>
<i class="fa fa-dot-circle-o"></i>
</button>
</div>
</div>
<button class="toggle" id="north" onclick="resetNorth()">
<!--<span class="north-content"></span>-->
<img
class="northImg"
src="data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E %3Cpolygon fill='%23333333' points='6,9 10,1 14,9'/%3E %3Cpolygon fill='%23CCCCCC' points='6,11 10,19 14,11 '/%3E %3C/svg%3E"
/>
</button>
<!-- Tabs -->
<div class="tab">
<div
id="⚙ ППТ"
class="tabcontent"
style="background: repeating-linear-gradient(
45deg,
#fff,
#fff 5px,
#eee 5px,
#eee 10px
)"
>
<div class="tabHeader" onclick="parentElement.style.display = 'none'">
<h>ППТ в разработке</h>
<span class="tabClose">×</span>
</div>
<button onclick="tabFilterLine(event,'PPT-WIP-TPU')">ТПУ</button>
<button onclick="tabFilterLine(event,'PPT-WIP-UDS')">УДС</button>
<button onclick="tabFilterLine(event,'PPT-WIP-metro')">Метро</button>
<button onclick="tabFilterLine(event,'PPT-WIP-terr')">
Территории
</button>
<button onclick="tabFilterLine(event,'PPT-WIP-renovation')">
Реновация
</button>
</div>
<div id="ППТ" class="tabcontent">
<div class="tabHeader" onclick="parentElement.style.display = 'none'">
<h>Утверждённые ППТ</h>
<span class="tabClose">×</span>
</div>
<button onclick="tabFilter(event,'PPT-TPU')">ТПУ</button>
<button onclick="tabFilter(event,'PPT-UDS')">УДС</button>
<button onclick="tabFilter(event,'PPT-metro')">Метро</button>
<button onclick="tabFilter(event,'PPT-terr')">Территории</button>
<button onclick="tabFilter(event,'PPT-renovation')">Реновация</button>
</div>
<div id="ДКР" class="tabcontent">
<div class="tabHeader" onclick="parentElement.style.display = 'none'">
<h>Благоустройство</h>
<span class="tabClose">×</span>
</div>
<button onclick="tabFilterYear(event)">2011-2018</button>
<button onclick="tabFilterYear(event)">2019</button>
<button onclick="tabFilterYear(event)">2020</button>
<button onclick="tabFilterYear(event)">2021</button>
<button onclick="tabFilterYear(event)">2022</button>
<button onclick="tabFilterYear(event)">2023</button>
</div>
<buttoni class="tablinks" onclick="toggleLayerLine(event, '⚙ ППТ')"
><i class="fa fa-wrench" aria-hidden="true"></i> ППТ</buttoni
>
<button class="tablinks" onclick="toggleTab(event, 'ППТ')">ППТ</button>
<button class="tablinks" onclick="toggleLayerLine(event, 'ДКР')">
ДКР
</button>
<button class="tablinks" onclick="toggleLayer(event, '🗺')">
<i class="fa fa-map" aria-hidden="true"></i>
</button>
</div>
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<iframe
id="iFrame"
width="100%"
height="100%"
frameborder="0"
style="border:0"
></iframe>
</div>
</div>
<script src="index.js" async></script>
</body>
</html>