MapView.SetTag
--------------

Sets the tag string for this map view.

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

MBS( "MapView.SetTag"; MapView; Tag ) 

**MBS**( **"MapView.SetTag";** /\* Sets the tag string for this map view. \*/  
**$MapView**; /\* The map view reference number.e.g. $$MapView \*/   
**$Tag**) /\* A string you want to associate with the map view. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MapView | The map view reference number. | $$MapView |
| Tag | A string you want to associate with the map view. |  |

### Result

Returns OK or error.

### Description

Sets the tag string for this map view.  
Use the tag to store whatever value you want to associate with the image view. You can later query it using [MapView.GetTag](MapViewGetTag.md).  
### See also

- [ImageView.SetTag](ImageViewSetTag.md)
- [MapView.GetTag](MapViewGetTag.md)
- [MapView.GetTop](MapViewGetTop.md)
- [MapView.SetFrame](MapViewSetFrame.md)
- [TextView.SetTag](TextViewSetTag.md)

This function is free to use.

Created 14th January 2019 , last changed 15th January 2019

  
[MapView.SetShowsZoomControls](MapViewSetShowsZoomControls.md) - [MapView.SetToolTip](MapViewSetToolTip.md)

[HTML Version](MapViewSetTag.shtml)