Passing x,y coordinates in AGOL or AGOL WAB to outlink URL

642
1
08-03-2017 12:31 PM
by Anonymous User
Not applicable

I'm looking for a ~fairly~ simple request, I think. 

I want a user to click on the map, say at a point where the coordinates are x=100, y=30. And then, in my pop-up, I want to pass those as URL variables, similar to how you do for attributes. I have an outlink URL (<a href></a>) that I want those values to be appended to. So in this situation, the URL would be http://website.com/index.html?x=100&y=30 

Any and all help is greatly appreciated! I'm not super familiar with JS, but this project was kinda thrust unto me, so I'm looking for all the help I can get!

If you need more info, please reach out!

0 Kudos
1 Reply
RebeccaStrauch__GISP
MVP Emeritus

Based on your post's tag's, I'm assuming you are using Web AppBuilder.  Are you using the Online of Developer edition?  That might help with others answering your questions.

tagging https://community.esri.com/community/gis/web-gis/web-appbuilder?sr=search&searchId=f758db95-b318-468...https://community.esri.com/groups/web-app-builder-custom-widgets?sr=search&searchId=f758db95-b318-46...‌ and https://community.esri.com/community/developers/web-developers/arcgis-api-for-javascript?sr=search&s...‌  for more exposure.

0 Kudos