Hello, I need help please, I use vue3 and I need when I have a div button to click e.g. one element, so that the map shows exactly the element as if I clicked on it in the map.
Please help.
I am adding examples in the images.
Code: codepen
Image:
As you can see in the picture I need, when I click on the element on the left of the button, I need the info table about it to open like this and be highlighted. PLEASE
Solved! Go to Solution.
Hi @tomaskudrna
The behavior you're trying to implement seems similar to the user interaction of this sample: https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query-pagination/
The main thing you would need to do is when the element is clicked, you could query for the feature related to that element, then call MapView.openPopup with the related feature passed in to the features option of the method to open its popup.
Hi @tomaskudrna
The behavior you're trying to implement seems similar to the user interaction of this sample: https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query-pagination/
The main thing you would need to do is when the element is clicked, you could query for the feature related to that element, then call MapView.openPopup with the related feature passed in to the features option of the method to open its popup.
Hi @LaurenBoyd , thank you, but the sample is wrong, can you send it again please?
I will try other options, thank you 🙂
Sample:
Apologies for that! I sent the incorrect link. Here's the link: https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query-pagination/
Thank you very much, you helped me a lot, I've already solved it 🙂