File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,10 @@ body.modal #map {
87
87
transform : translateY (-15% );
88
88
}
89
89
90
+ .mapboxgl-ctrl-top-right {
91
+ top : 55px ;
92
+ }
93
+
90
94
# layers-button {
91
95
outline : 0 ;
92
96
border : 0 ;
@@ -432,6 +436,9 @@ body.modal #card{
432
436
}
433
437
434
438
@media (min-width : 768px ) and (min-height : 600px ) {
439
+ .mapboxgl-ctrl-top-right {
440
+ top : 0 ;
441
+ }
435
442
# layers-button ,
436
443
# modal ,
437
444
# layers .close {
Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ var map = new mapboxgl.Map({
36
36
attributionControl : false , // Attribution is inside Layers modal
37
37
} ) ;
38
38
map . touchZoomRotate . disableRotation ( ) ;
39
+ map . addControl ( new mapboxgl . GeolocateControl ( {
40
+ positionOptions : {
41
+ enableHighAccuracy : true ,
42
+ } ,
43
+ trackUserLocation : true ,
44
+ } ) ) ;
39
45
40
46
var maxBoundsLike = [
41
47
[ 103.6016626883025 , 1.233357600011331 ] , // sw
You can’t perform that action at this time.
0 commit comments