Skip To Content
ArcGIS Developer
Dashboard

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
  }
}