AnsweredAssumed Answered

How do I pass an address into my javascript API map using URL parameters?

Question asked by geohaskett on Feb 18, 2015
Latest reply on Feb 27, 2015 by geohaskett

I am using the latest version of the ESRI JavaScript API to build a basemap template.

 

What I would like to do is pass an address parameter into my map so that when it opens the map is zoomed into the address in question.  I am currently doing this with the Viewer for Flex using the following code:

 

Viewer for Flex: (link not active)     http://myserver.com/flexviewers/actmap/index.html?search=15 Fordham St, Pocatello, Idaho

 

I came across this example for ArcGIS Online:

     http://www.arcgis.com/home/webmap/viewer.html?find=380 new york st,redlands,ca

 

How do I do this with the JavaScript API for ESRI ArcGIS?

Do I need to define parameters within the code or can I simply pass URL parameters to the map like in the above examples to the geocode or locator widgets?

 

Thanks in advance,

Outcomes