Select to view content in your preferred language

How to plot an address without using Search and Location Button?

1421
14
10-23-2017 11:56 AM
MartinNitschke
Emerging Contributor

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.

Tags (1)
0 Kudos
14 Replies
ThomasSolow
Frequent Contributor

Make sure to host it and access the page via localhost.

0 Kudos
MartinNitschke
Emerging Contributor

I did that, received the same Syntax error as I posted above.

0 Kudos
ThomasSolow
Frequent Contributor

Gotcha, try this: https://codepen.io/solowt/pen/LzoQPe 

Older browsers/IE 11 don't support arrow functions so I'm guessing that's the issue.

0 Kudos
MartinNitschke
Emerging Contributor

I was using IE 11.  Its the standard browser here. I will look at the new post.

0 Kudos
MartinNitschke
Emerging Contributor

The page displays now, even on the codepen page!  Yesterday that page was blank too.   Thanks so much for all the information!

0 Kudos