Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.html
More file actions
Latest commit
65 lines (54 loc) · 2.64 KB
/
Copy pathmap.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>
<metacharset="utf-8" />
<metaname="viewport" content="width=device-width, initial-scale=1.0">
<scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.5.0/proj4.js"></script>
<scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<scriptsrc="Naselenie.js"></script>
<scriptsrc="Stops.js"></script>
<scriptsrc="BusLines.js"></script>
<scriptsrc="Trolleybusses.js"></script>
<scriptsrc="Trams.js"></script>
<scriptsrc="bussesFirstColumn.js"></script>
<scriptsrc="bussesAll.js"></script>
<scriptsrc="tramsAll.js"></script>
<scriptsrc="TrolleybusesAll.js"></script>
<linkrel="stylesheet" href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css" integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA==" crossorigin=""/>
<scriptsrc="https://unpkg.com/leaflet@1.3.4/dist/leaflet.js" integrity="sha512-nMMmRyTVoLYqjP9hrbed9S+FzjZHW5gY1TWCHA5ckwXZBadntCNs8kEqAWdrb9O7rxbCaA4lKTIWjDXZxflOcA==" crossorigin=""></script>
</head>
<body>
<divid="mapid" style="width: auto; height: 550pt;"></div>
<!-- FIX ZINDEX -->
Квартали: <inputtype="checkbox" id="regions" onclick="toggleRegions(mymap)"\>
Спирки: <inputtype="checkbox" id="stops" onclick="toggleStops(mymap)"\>
Автобуси: <inputtype="checkbox" id="busses" onclick="toggleBusses(mymap)"\>
Тролейбуси: <inputtype="checkbox" id="trolleyBusses" onclick="toggleTrolleyBusses(mymap)"\>
Трамвай: <inputtype="checkbox" id="trams" onclick="toggleTrams(mymap)"\>
<scriptsrc="js/drawGeofences.js"></script>
<scriptsrc="js/drawStations.js"></script>
<scriptsrc="js/drawBusLines.js"></script>
<scriptsrc="js/drawTrolleybusLines.js"></script>
<scriptsrc="js/drawTramLines.js"></script>
<script>
varmymap=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>