问题内容: I am using the following code to add the GeolocateControl to my react-mapbox-gl map in react. I need to automatically call the method _onClickGeolocate method using setTimeout() to request the user location automatically upon loading the page. How would I be able to achieve this ? import { Component } from "react"; import PropTypes