<!--
{
  "availability" : [
    "MapKit JS: 5.74.0 - 6.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/ImageDelegate/getImageUrl",
  "metadataVersion" : "0.1.0",
  "role" : "Interface Method",
  "symbol" : {
    "kind" : "Interface Method",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "structm/mapkit.ImageDelegate/getImageUrl"
  },
  "title" : "getImageUrl(ratio, callback)"
}
-->

# getImageUrl(ratio, callback)

Returns the URL to an image of the specified scale.

```
getImageUrl?(ratio: number, callback: (url: string | null) => void): void;
```

---

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)