Skip to content

Instantly share code, notes, and snippets.

@phpmaps
Created March 26, 2013 21:53
Show Gist options
  • Save phpmaps/5249656 to your computer and use it in GitHub Desktop.
Save phpmaps/5249656 to your computer and use it in GitHub Desktop.
ArcGIS JSAPI setRequestPreCallback
esri.setRequestPreCallback(updateAddressParameters); //goes in init()
function updateAddressParameters(ioArgs) {
if ( ioArgs.url.indexOf("findAddressCandidates") != -1) {
ioArgs.content["Single Line Input"] = "201 s jackson st, Seattle, 98104";
}
return ioArgs; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment