after the user click on one of the data display in lists it will open a popup and show its details, in my current behavior, he just locates where the data comesfrom but no popup display.
const [locationList, setLocationList] = useState([]);
const onLocationSelect = (location) => {
mapDiv.current.center = [
location.geoCode.longitude,
location.geoCode.latitude,
];
mapDiv.current.popup.open({
//open what record selected
});
};
<LocationSearchWidget
locations={locationList}
setViewLocationList={setViewLocationList}
viewLocationList={viewLocationList}
setActiveLocation={onLocationSelect}
startSearch={onStartSearch}
/>