URL coordinate parameters

9447
13
09-05-2012 11:08 AM
JohnPeabody
New Contributor II
I wish to be able to pass coordinate (XY) and zoom parameters via the map URL so that the map will center on the point represented by the coordinate values and zoom to the level passed in the url.

I have not had any luck in finding the code to do this (the one sample supplies a single parameter and searches for the value in a map layer (Parcel ID) which is not very helpful) and would appreciate any guidance that can be provided.

Thanks

John
13 Replies
RobertScheitlin__GISP
MVP Emeritus

Andrew,

 Unfortunately in AGOL WAB you do not have access to modify code that would allow you to develop the portion to add a popup link that would append the coordinates to the url of a link. WAB by default does have a center url parameter though:

http://doc.arcgis.com/en/web-appbuilder/manage-apps/app-url-parameters.htm#ESRI_SECTION1_DFA518B2DF5... 

by Anonymous User
Not applicable

But using the WAB (not AGOL) I could likely have some event listener to accomplish something of this sort, right? Any insight there?

0 Kudos
RebeccaStrauch__GISP
MVP Emeritus

I see https://community.esri.com/message/705716-passing-xy-coordinates-in-agol-or-agol-wab-to-outlink-url  is a dupe of this conversation.  Probably is best to have it as a new conversation, but if Robert (who would be the expert) answers is here, you might just want to delete the other....or include a link to the answer here and mark "assumed answered"

just an fyi, lots of good tips (including in comments) on posting to geonet  https://community.esri.com/community/help-and-feedback/blog/2016/08/15/community-news-and-tips-how-t...

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Andrew,

   Yes Using WAB Developer edition will give you the ability to customize code and do exactly what you are after.

0 Kudos