-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
114 lines (89 loc) · 2.58 KB
/
app.js
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
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
/*var map = L.map('map').setView([38.889805, -77.009056], 13);
=======
var map = L.map('map').setView([38.889805, -77.009056], 13);
>>>>>>> 7b64fb92e17064767844fbf5407736e51678ed3a
=======
var map = L.map('map').setView([38.889805, -77.009056], 13);
>>>>>>> 7b64fb92e17064767844fbf5407736e51678ed3a
=======
var map = L.map('map').setView([38.889805, -77.009056], 13);
>>>>>>> 7b64fb92e17064767844fbf5407736e51678ed3a
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
L.marker([38.889805, -77.009056]).addTo(map)
.bindPopup('Washington D.C <br>')
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
.openPopup(); */
/*mapboxgl.accessToken = '';
const map = new mapboxgl.Map({
container: 'map',
center: [38.889805, -77.009056],
zoom: 15.1,
pitch: 62,
bearing: -20
});
map.on('style.load', () => {
map.addSource('line', {
lineMetrics: true,
data: {
type: 'LineString',
coordinates: [
[38.889805, -77.009056]
,
[2.2890810326441624, 48.86174223718291]
]
}
});
map.addLayer({
id: 'line',
source: 'line',
type:"line"
paint: {
'line-width': 12;
}
// not gonna put in the dark line stuff right now just to see what it is like!!!
}); */
//want to make just a simple globe to start rendering
const map = new mapboxgl.Map ({
container: 'map'
projection: 'globe'
});
map.on("style.load", () =? {
map.setFog({
color: 'rgb(186, 210,235)',
'high-color': 'rgb(36,92,223)',
'horizon-blend': 0.02,
'space-color': 'rgb(11,11,23)'
'star-intensity': 0.6
});
});
//trying to add some radar to make it kewl
map.addLayer({
id: 'radar-layer',
type: 'raster',
source: 'radar',
paint: {
"raster-fade-duration":0
}
})
document.querySelectorAll('.map-overlay-inner-input[type="checkbox')
.forEach((checkbox => {
checkbox.addEventListener('change', function () {
map.setConfigProperty('basemap',this.id, this.checked)
});
//});
=======
.openPopup();
>>>>>>> 7b64fb92e17064767844fbf5407736e51678ed3a
=======
.openPopup();
>>>>>>> 7b64fb92e17064767844fbf5407736e51678ed3a
=======
.openPopup();
>>>>>>> 7b64fb92e17064767844fbf5407736e51678ed3a