<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/UserLocationAnnotation",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "cl/mapkit.UserLocationAnnotation"
  },
  "title" : "UserLocationAnnotation"
}
-->

# UserLocationAnnotation

An annotation that represents someone’s location.

```
class UserLocationAnnotation extends Annotation
```

## Discussion

The framework automatically adds a person’s location annotation to the map view when the map view’s [`showsUserLocation`](/documentation/MapKitJS/Map/showsUserLocation) property is set to `true`.

## Topics

### Instance Properties

[`get coordinate(): Coordinate;
set coordinate(coordinate: Coordinate);`](/documentation/MapKitJS/UserLocationAnnotation/coordinate)

The coordinate of the annotation, that represents a person’s location on the map.

[`get draggable(): boolean;
set draggable(_: boolean);`](/documentation/MapKitJS/UserLocationAnnotation/draggable)

A Boolean value that indicates whether someone can drag the the user location annotation.

[`get size(): Size;
set size(_: Size);`](/documentation/MapKitJS/UserLocationAnnotation/size)

The size of the user location annotation.

## Relationships

### Inherits From

[`Annotation`](/documentation/MapKitJS/Annotation)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)