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

# url

An object that contains URLs for the image assets in multiple resolutions.

```
url?: ImageDelegate | ImageHashObject | ImageSource | Promise<ImageSource>;
```

## Discussion

This property is an object literal containing absolute or relative URLs to standard, 2×, and 3× Retina assets. MapKit JS requires at least one image URL.

```javascript
{
    url: {
        1: "example.png",
        2: "example_2x.png",
        3: "example_3x.png"
    }
}
```

If you choose not to provide standard and Retina resolution assets, you have two options:

- Set “1” to a URL to a standard resolution image. This results in blurry images on Retina displays.
- Set “1” to a URL to a Retina image. Set the size to the desired size. This results in crisp images on Retina displays and good images on standard displays, but it’s less optimal than custom, pixel-fitted images.

---

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)