Locate widget to locate blue dot on map without zooming or pan to the location

446
1
12-15-2020 03:22 AM
ImtiyazPasha
Occasional Contributor

Hi,

 

In the below sample after clicking locate the widget map zoom to the location.

https://developers.arcgis.com/javascript/latest/sample-code/widgets-locate/index.html

I am trying to use the Locate widget to locate the blue dot on the map without zooming or pan to the location. just want to see the blue dot. Any help will be appreciated.

Tags (1)
0 Kudos
1 Reply
AnneFitz
Esri Contributor

Hi, you can set the goToLocationEnabled property to false on the Locate widget. This will just show the blue dot without zooming or panning.

Hope this helps!