Skip to content

Commit 7cbe31e

Browse files
authored
bike: enable location marker/circle
1 parent 2943bca commit 7cbe31e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

bike.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@
137137
})
138138
// show the scale bar on the lower left corner
139139
L.control.scale({imperial: true, metric: true}).addTo(map);
140-
L.control.locate({drawMarker: false, drawCircle: false}).addTo(map);
140+
141+
// Add location marker/circle to the map
142+
L.control.locate({drawMarker: true, drawCircle: true}).addTo(map);
141143

142144
// This is taken from Cyclosm.org
143145
// Very detailed comments and easily readable code that I would not have been

0 commit comments

Comments
 (0)