<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/AnnotationConstructorOptions/map",
  "metadataVersion" : "0.1.0",
  "role" : "Interface Property",
  "symbol" : {
    "kind" : "Interface Property",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "structp/mapkit.AnnotationConstructorOptions/map"
  },
  "title" : "map"
}
-->

# map

Sets the annotation’s map.

```
map?: Map;
```

## Discussion

The framework ignores the map option in the constructor. If present, the framework generates a warning.

To add or remove an annotation from a specific map, use `Map/addAnnotation` and `Map/removeAnnotation`.

---

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)