Search code examples
javascriptarcgisesriarcgis-js-api

How can I hide the Find My Location buttons?


In ArcGis 3.x, is there a way to hide the Find my location buttons in the search boxes? No matter how much I try, I can't find that bullseye control in dev tools of the browser. Thanks.

Update: These two fields are using the Directions widgets.

enter image description here


Solution

  • The easiest way is to override the style in order to hide the button, something like this should work,

    .LocateButton {
      display: none !important;
    }