Skip to content

Commit 4ee411f

Browse files
committed
Merge remote-tracking branch 'origin/mb-pages'
2 parents d3cca07 + 082558d commit 4ee411f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/_posts/examples/3400-01-01-rotating-controllable-marker.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515

1616
var direction = 0, manual = false, speed = 1;
1717

18+
// create a GeoJSON point to serve as a starting point
1819
var point = {
19-
type: 'Point',
20-
coordinates: [-74.50, 40]
20+
"type": "Point",
21+
"coordinates": [-74.50, 40]
2122
};
2223

24+
// add the GeoJSON above to a new vector tile source
2325
var source = new mapboxgl.GeoJSONSource({
2426
data: point
2527
});
@@ -40,7 +42,7 @@
4042

4143
map.on('style.load', function () {
4244
map.addSource('drone', source);
43-
45+
4446
map.addLayer({
4547
"id": "drone-glow-strong",
4648
"type": "circle",
@@ -62,7 +64,7 @@
6264
"circle-opacity": 0.1
6365
}
6466
});
65-
67+
6668
map.addLayer({
6769
"id": "drone",
6870
"type": "symbol",
@@ -71,7 +73,7 @@
7173
"icon-image": "airport-24",
7274
}
7375
});
74-
76+
7577
window.setInterval(setPosition, 10);
7678
});
7779

0 commit comments

Comments
 (0)