Select to view content in your preferred language

Clicking in a map and opening an url with coordinates

253
2
Jump to solution
02-16-2025 11:08 PM
KaiBehncke
Regular Contributor

Hi all,

meanwhile I get deeper and deeper in Experience Builder,
but for one thing I haven`t found a solution so far:


Is there a way to click on a map so that automatically an URL opens, that gets coordinates as parameters?

I mean: Mouseklick in the map and then the URL

https://mysite.com?coordinates=7.123,52.123

opens?


Has anybody an idea how to solve that?

Thank you very much in advance, Kai

Tags (1)
1 Solution

Accepted Solutions
JarrettGreen
Regular Contributor

Kai,

If you want it directly in Experience Builder then you are looking at customization. However, you could try with the newer $userInput profile variable in Arcade in your web map. I've used this to open a google street map viewer in another browser tab. As a user clicks on a roadway, and with some on the fly coordinate conversions, I can ingest the XY response from the $userInput profile variable and construct the URL.

https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/whats-new-in-arcade-1-26/

Good luck!
Jarrett

View solution in original post

2 Replies
JarrettGreen
Regular Contributor

Kai,

If you want it directly in Experience Builder then you are looking at customization. However, you could try with the newer $userInput profile variable in Arcade in your web map. I've used this to open a google street map viewer in another browser tab. As a user clicks on a roadway, and with some on the fly coordinate conversions, I can ingest the XY response from the $userInput profile variable and construct the URL.

https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/whats-new-in-arcade-1-26/

Good luck!
Jarrett

KaiBehncke
Regular Contributor

Thank you very much for your answer 🙂

0 Kudos