I have searched through the documents, but found nothing specific to the address autofill property sessionToken. Does anyone have reference information that includes the behavior, lifecycle and related functions for the property?
I have a prototype using the property along with accessToken, but not sure if it is actually correctly operating as designed.
function initAutocomplete() {
const autofill = document.querySelector('mapbox-address-autofill');
//const minimap = document.querySelector('mapbox-address-minimap');
autofill.accessToken = ACCESS_TOKEN;
autofill.sessionToken = 'testsession-token'
//minimap.accessToken = ACCESS_TOKEN;
autofill.addEventListener('retrieve', (event) => {
const featureCollection = event.detail;
if (!featureCollection || !featureCollection.features.length) {
minimap.feature = null;
return;
}
mapboxfeature = featureCollection.features[0];
//minimap.feature = feature;
fillInAddress();
});
}