File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,6 +87,10 @@ body.modal #map {
8787 transform : translateY (-15% );
8888}
8989
90+ .mapboxgl-ctrl-top-right {
91+ top : 55px ;
92+ }
93+
9094# layers-button {
9195 outline : 0 ;
9296 border : 0 ;
@@ -432,6 +436,9 @@ body.modal #card{
432436}
433437
434438@media (min-width : 768px ) and (min-height : 600px ) {
439+ .mapboxgl-ctrl-top-right {
440+ top : 0 ;
441+ }
435442 # layers-button ,
436443 # modal ,
437444 # layers .close {
Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ var map = new mapboxgl.Map({
3636 attributionControl : false , // Attribution is inside Layers modal
3737} ) ;
3838map . touchZoomRotate . disableRotation ( ) ;
39+ map . addControl ( new mapboxgl . GeolocateControl ( {
40+ positionOptions : {
41+ enableHighAccuracy : true ,
42+ } ,
43+ trackUserLocation : true ,
44+ } ) ) ;
3945
4046var maxBoundsLike = [
4147 [ 103.6016626883025 , 1.233357600011331 ] , // sw
You can’t perform that action at this time.
0 commit comments