is it possible to have a lists of locations with (latitude and longitude), and if the user click one of the lists it will locate and a popup will displayed its details?
Yes, it is possible, but it is dependent upon the context. In a Dashboard or Experience Builder, List widgets are one of the primary means of interacting with data on a linked map.
Where are you trying to implement this?
arcGIS javascript API
hello and thanks for this, can you provide an example using my code?
@altair - change the code for correct feature with attributes:
const onLocationSelect = (location) => {
              mapDiv.current.goTo(location).then(() => {                      
           mapDiv.current.popup.open({
                  features:[location],
                  location:[
                      location.longitude,
                     location.latitude,
                  ]
            })
     })
};This should work for you.