MapView.GetAnnotationImage
--------------------------

Queries current image used for an annotation.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MapView](component_MapView.md) | [9.5](newinversion95.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "MapView.GetAnnotationImage"; MapView; Annotation Identifier { ; ImageType; FileName } ) 

**MBS**( **"MapView.GetAnnotationImage";** /\* Queries current image used for an annotation. \*/  
**$MapView**; /\* The map view reference number.e.g. $$MapView \*/   
**$Annotation Identifier**; /\* The identifier for the annotation.e.g. "82001" \*/   
**$ImageType**; /\* Optional; The type of image to return.   
Either JPEG, PNG, GIF or BMP. Default is JPEG.e.g. "JPEG" \*/   
**$FileName**) /\* Optional; The filename to use for the picture.   
Default is "image" with the extension matching the image type.e.g. "test.jpg" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| MapView | The map view reference number. | $$MapView |  |
| Annotation Identifier | The identifier for the annotation. | "82001" |  |
| ImageType | The type of image to return.    Either JPEG, PNG, GIF or BMP. Default is JPEG. | "JPEG" | Optional |
| FileName | The filename to use for the picture.    Default is "image" with the extension matching the image type. | "test.jpg" | Optional |

### Result

Returns container value or error.

### Description

Queries current image used for an annotation.  
Only for point annotations with image.  
### See also

- [MapView.GetAnnotationDragImage](MapViewGetAnnotationDragImage.md)
- [MapView.SetAnnotationDragImage](MapViewSetAnnotationDragImage.md)
- [MapView.SetAnnotationImage](MapViewSetAnnotationImage.md)

### Release notes

- **Version 9.5**
    - Added [MapView.GetAnnotationImage](http://www.mbsplugins.eu/MapViewGetAnnotationImage.shtml), [MapView.GetOverlayPoints](http://www.mbsplugins.eu/MapViewGetOverlayPoints.shtml), [MapView.SetAnnotationImage](http://www.mbsplugins.eu/MapViewSetAnnotationImage.shtml) and [MapView.SetOverlayPoints](http://www.mbsplugins.eu/MapViewSetOverlayPoints.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin, version 9.5pr1](https://www.mbsplugins.de/archive/2019-10-02/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 20th September 2019 , last changed 29th September 2020

  
[MapView.GetAnnotationDragImage](MapViewGetAnnotationDragImage.md) - [MapView.GetAnnotationSelectedImage](MapViewGetAnnotationSelectedImage.md)

[HTML Version](MapViewGetAnnotationImage.shtml)