---
title: "getImageUrl(ratio, callback)"
framework: mapkitjs
role: symbol
role_heading: Interface Method
path: mapkitjs/imagedelegate/getimageurl
---

# getImageUrl(ratio, callback)

Returns the URL to an image of the specified scale.

## Declaration

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

## Mentioned in

MapKit JS 6

## See Also

### Returning an image

- [getImage(ratio)](mapkitjs/imagedelegate/getimage.md)
