---
title: "getImageUrl(scale, callback)"
framework: mapkitjs
role: symbol
role_heading: Instance Method
path: mapkitjs/mapfeatureannotationglyphimage/getimageurl
---

# getImageUrl(scale, callback)

Returns the image URL of the map feature.

## Declaration

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

## Discussion

Discussion The method returns the URL as the first argument of callback. The URL is a blob: URL. To avoid a memory leak, you need to revoke it with URL.revokeObjectURL() when you no longer need it.
