-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.html
More file actions
65 lines (54 loc) · 2.64 KB
/
map.html
File metadata and controls
65 lines (54 loc) · 2.64 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.5.0/proj4.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="Naselenie.js"></script>
<script src="Stops.js"></script>
<script src="BusLines.js"></script>
<script src="Trolleybusses.js"></script>
<script src="Trams.js"></script>
<script src="bussesFirstColumn.js"></script>
<script src="bussesAll.js"></script>
<script src="tramsAll.js"></script>
<script src="TrolleybusesAll.js"></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css" integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA==" crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.3.4/dist/leaflet.js" integrity="sha512-nMMmRyTVoLYqjP9hrbed9S+FzjZHW5gY1TWCHA5ckwXZBadntCNs8kEqAWdrb9O7rxbCaA4lKTIWjDXZxflOcA==" crossorigin=""></script>
</head>
<body>
<div id="mapid" style="width: auto; height: 550pt;"></div>
<!-- FIX ZINDEX -->
Квартали: <input type="checkbox" id="regions" onclick="toggleRegions(mymap)"\>
Спирки: <input type="checkbox" id="stops" onclick="toggleStops(mymap)"\>
Автобуси: <input type="checkbox" id="busses" onclick="toggleBusses(mymap)"\>
Тролейбуси: <input type="checkbox" id="trolleyBusses" onclick="toggleTrolleyBusses(mymap)"\>
Трамвай: <input type="checkbox" id="trams" onclick="toggleTrams(mymap)"\>
<script src="js/drawGeofences.js"></script>
<script src="js/drawStations.js"></script>
<script src="js/drawBusLines.js"></script>
<script src="js/drawTrolleybusLines.js"></script>
<script src="js/drawTramLines.js"></script>
<script>
var mymap = L.map('mapid').setView([42.698334, 23.319941], 13);
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
maxZoom: 18,
attribution: 'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, ' +
'<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
'Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
id: 'mapbox.streets'
}).addTo(mymap);
mymap.on('zoomend', function() {
clearAll(mymap);
drawStations(mymap);
});
drawGeofences(mymap);
drawStations(mymap);
drawSimpleBusLines(mymap);
//drawBusLines(mymap);
drawTrolleyBusLines(mymap);
drawTramLines(mymap);
</script>
</body>
</html>