Skip to main content

mergMKAddAnnotation

Type​

function

Summary​

Returns an id for the annotation that was created

Syntax​

mergMKAddAnnotation(<pCoordinate>, <pTitle>, [<pSubtitle>], [<pShowCallout>], [<pAnimateDrop>], [<pPinColor>], [<pDraggable>], [<pCalloutImage>], [<pShowCalloutButton>])

Description​

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

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

Examples​

put mergMKAddAnnotation(mergMKGet("center coordinate"),"Dig Here!") into tAnnotationID

Value​

NameTypeDescription

return

The ID of the annotation.

Compatibility and Support​

Introduced

LiveCode 8.0

OS

ios

Platforms

mobile

Thank you for your feedback!

Was this page helpful?