I want to render the map with default values of viewport set to user's location. Currently below code is for normal rendering and there is locate me button in the map when clicked it moves to that location. Any way to get it default clicked?
<ReactMapGL
mapboxApiAccessToken={mapboxApiKey}
mapStyle="mapbox://styles/mapbox/streets-v11"
{...viewport}
{...mapStyle}
onViewportChange={this.handle_view}
>
<GeolocateControl
positionOptions={{ enableHighAccuracy: true }}
trackUserLocation={true}
/>
</ReactMapGL>
Following this answer: https://stackoverflow.com/a/59870917/14403123
A codesandbox showing the full code: https://codesandbox.io/s/intelligent-albattani-f596t?file=/src/App.js. However it won't show the map since I'm missing the token.