mergMKAddAnnotation

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
mergMKAddAnnotation(<pCoordinate>, <pTitle>, [<pSubtitle>], [<pShowCallout>], [<pAnimateDrop>], [<pPinColor>], [<pDraggable>], [<pCalloutImage>], [<pShowCalloutButton>])
Associationsmergmk
Summary

Returns an id for the annotation that was created

Introduced8.0
OSios
Platformsmobile
Parameters
NameTypeDescription
pCoordinate

a location in decimal coordinates (latitude,longitude)

pTitle

the title for the annotation (shown on the callout)

pSubtitle

(optional with "" default) the subtitle for the annotation (shown on the callout)

pShowCallout

(optional with "true" default) true or false to show the callout when the user touches the annotation with true as default - false - true

pAnimateDrop

(optional with "true" default) true or false to animate the annotation drop with true as default - false - true

pPinColor

(optional with "red" default) one of:|red (default)|purple|green - red - purple - green

pDraggable

(optional with "false" default) true or false to enable drag and drop with false as default - false - true

pCalloutImage

(optional with optionally default) optionally add an image to the left side of the accessory view (32x32)

pShowCalloutButton

(optional with "true" default) true or false to show the button on the right of the callout - false - true

Example
put mergMKAddAnnotation(mergMKGet("center coordinate"),"Dig Here!") into tAnnotationID
Values
NameTypeDescription
return

The ID of the annotation.

Description

The id will be included as a parameter in annotation interaction callback messages.

Tagsexternals