| Platform | Since |
|---|---|
| Android | 0.9 |
| iPhone | 0.9 |
| iPad | 0.9 |
An Annotation object that is created by the method Titanium.Map.createAnnotation. This object gives you low level control over annotations that can be added to a Map View.
| Name | Summary |
|---|---|
| addEventListener |
Adds the specified callback as an event listener for the named event. |
| fireEvent |
Fires a synthesized event to any registered listeners. |
| getAnimate |
Gets the value of the animate property. |
| getImage |
Gets the value of the image property. |
| getLeftButton |
Gets the value of the leftButton property. |
| getLeftView |
Gets the value of the leftView property. |
| getPinImage |
Gets the value of the pinImage property. (Android only.) |
| getPincolor |
Gets the value of the pincolor property. |
| getRightButton |
Gets the value of the rightButton property. |
| getRightView |
Gets the value of the rightView property. |
| getSubtitle |
Gets the value of the subtitle property. |
| getSubtitleid |
Gets the value of the subtitleid property. |
| getTitle |
Gets the value of the title property. |
| getTitleid |
Gets the value of the titleid property. |
| removeEventListener |
Removes the specified callback as an event listener for the named event. |
| setAnimate |
Sets the value of the animate property. |
| setImage |
Sets the value of the image property. |
| setLeftButton |
Sets the value of the leftButton property. |
| setLeftView |
Sets the value of the leftView property. |
| setPinImage |
Sets the value of the pinImage property. (Android only.) |
| setPincolor |
Sets the value of the pincolor property. |
| setRightButton |
Sets the value of the rightButton property. |
| setRightView |
Sets the value of the rightView property. |
| setSubtitle |
Sets the value of the subtitle property. |
| setSubtitleid |
Sets the value of the subtitleid property. |
| setTitle |
Sets the value of the title property. |
| setTitleid |
Sets the value of the titleid property. |
| Name | Type | Summary |
|---|---|---|
| animate | Boolean |
boolean to indicate whether the pin should animate when dropped |
| image | String |
image for the pin instead of default image. |
| leftButton | Number or String |
the left button image on the annotation. must either be a button type constant or url |
| leftView | Object |
a left view that is displayed on the annotation |
| pinImage | String |
Deprecated Use |
| pincolor | Number |
the pin color as one of |
| rightButton | Number or String |
the right button image on the annotation. must either be a button type constant or url |
| rightView | Object |
a right view that is displayed on the annotation |
| subtitle | String |
the secondary title of the annotation view |
| subtitleid | String |
the key in the locale file to use for the subtitle property |
| title | String |
the primary title of the annotation view |
| titleid | String |
the key in the locale file to use for the title property |