My Location

The My Location widget locates and zooms to your current location.

Configurable attributes

The following table describes the configurable attributes of the My Location widget.

AttributeDescription

locateButton

An object of ArcGIS API for JavaScript. See the LocateButton constructor parameters.

:

Example

{
  "locateButton": {
    "geolocationOptions": {
      "timeout": 10000
    },
  "highlightLocation": true,
  "useTracking": true
  }
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.