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?
@altair - what exactly you are looking for? I can help you in fixing the issue. You have to write your code and logic because you know your business case. To support further, please create a code pen sample and provide details where you are finding the difficulties.
@Kishore Unfortunately it doesnt work
@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 please see the updated question
@altair - please try implementing and post your code in codepen/sandbox to check or correct for any issue occurred.
hello and thanks for this, can you provide an example using my code?
@altair - you can look into the JSAPI sample featurelayer-query-pagination .
arcGIS javascript API
Hello @jcarlson, thanks for answering, can you please give me an example please.
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?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.