Closed Adamkzh closed 5 years ago
The user now can input address, however, we have to record the user's input. I have found this page which shows the data in the response `` please help me find a way to record the user input and do the query to the Mapbox server
let inputTextValue = document.getElementsByClassName("mapboxgl-ctrl-geocoder mapboxgl-ctrl")[0].textContent; let address = inputTextValue.substr(0, inputTextValue.indexOf('United States') + 13);
The user now can input address, however, we have to record the user's input. I have found this page which shows the data in the response
``
please help me find a way to record the user input and do the query to the Mapbox server