We have a Web Map, that has point features (cafes) and polygon features (buildings). The cafe attribute table includes the ID of the building that each cafe is in. In the cafes popup we would like to add a hyperlink that, when pressed, selects the building that the cafe is in (without reloading the map). I can easily construct whatever URL/syntax is needed using the ARCADE popup content type (as the cafe features have the ID of the building they are within), but I'm not sure what the syntax would be to achieve this.
I wondered if it would be possible via URL Parameters, but having read this blog (by @BernSzukalski) and this help page there doesn't seem to be a 'feature' URL parameter or any way (in Map Viewer at least) to be able to create custom URL parameters that I could use.
Does anyone know if this is possible, or if there is any workaround? Any help would be greatly received. Some screen grabs below hopefully illustrate what I'm after:
Cafe popup shown above, when the 'Main Library' hyperlink is clicked I would like to change the selected feature from the cafe to the building the cafe is in (i.e. the Main Library in this example):
Hi @MappyIan,
You can search for a feature in a layer using the 'find' parameter, as long as you have set up a search by that field in the web map settings. See Zoom to a feature in this article on URL Parameters for more. Is this what you are looking for?
Hey @EmilyGeo, thanks for getting back to me.
I should have added that I've tried the find parameter, and it kind of does what I want but using it reloads the map, which then loses any other changes made in the current map session (layers turned on/off, zoom level, centre point etc. etc.). What I'm trying to achieve is to get the map to switch selected feature within the current map session, i.e. replicate the behaviour of a user clicking on a different feature in the map by clicking on a hyperlink in the popup.