I have looked at the sample code which creates something far more complex than I am looking for. I'd like to be able to click a link containing the address, which goes to my page with the Map on it. I'd like to see the particular address marker, just as if you had typed in the Search widget, but without the necessity to even see a Search widget. I am successfully able to load the map, but unable to figure out how to set a location by address. Thanks.
Take a look at the world geocoder information: World Geocoding Service—ArcGIS REST API: World Geocoding Service | ArcGIS for Developers
You should be able to send requests to the AGOL world geocoder to handle this for you.
I still do not see how to pass the result to the map to plot the point returned. There are no code samples, just samples on how to call the API. Thanks for your patience.
Here's a sample that makes a request to the geocoding service and asks for 1 result and plots that on the view: https://codepen.io/solowt/pen/LzoQPe
When I copy that code into an HTML page, it only loads a blank page. No map and nothing happens.
Are you hosting the page with a web server? If you're not there are different rules about whether your browser can make HTTP requests.
No. I just created an HTML page on my computer and tried to open it. I could move it to a server to try it. I did select Allow All Content when prompted.
Put it on the server and still a blank page.
Martin,
What does your browsers web console say. Are there any errors there.
SCRIPT1002: Syntax error
}).then(response => {