Select to view content in your preferred language

HomeButton not working with my webmap ID

784
2
Jump to solution
01-15-2014 05:22 AM
VirginieVauthrot
Emerging Contributor
Hello everyone,

I'm searching to add a HomeButton in my API ArcGIS that uses a webmap. When I add the HomeButton in my code, this one appears on the map but isn't working (I can't come back in my default map).
Is HomeButton can be loaded with a webmap ID ?

Here is my code (in file attached) :
0 Kudos
1 Solution

Accepted Solutions
Noah-Sager
Esri Regular Contributor
Hello Virginie, and welcome to Esri Forums!

It is possible to use the Home button with a webmap. I found a small syntax error in the code you posted, but here is a slightly modified version, see if it works for you.

-Noah

View solution in original post

0 Kudos
2 Replies
Noah-Sager
Esri Regular Contributor
Hello Virginie, and welcome to Esri Forums!

It is possible to use the Home button with a webmap. I found a small syntax error in the code you posted, but here is a slightly modified version, see if it works for you.

-Noah
0 Kudos
VirginieVauthrot
Emerging Contributor
It works for me !

Thanks a lot for your help Noah 🙂
0 Kudos