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.
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!
Les membres connectés peuvent publier, suivre les mises à jour et bien plus encore. Vous êtes nouveau ici ? Créez un compte gratuit.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.