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?
Hello @jcarlson, thanks for answering, can you please give me an example please.
arcGIS javascript API
hello and thanks for this, can you provide an example using my code?
@altair - please try implementing and post your code in codepen/sandbox to check or correct for any issue occurred.
@Kishore please see the updated question
@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.
@Kishore Unfortunately it doesnt work