My Location

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

The following table lists the configurable attributes of the My Location widget:

Attribute

Description

locateButton

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

Example:

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