mergMKSet

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
mergMKSet <pProperty>, <pValue>, [<pAnimated>]
Associationsmergmk
Summary

Set the properties of the map

Introduced8.0
OSios
Platformsmobile
Parameters
NameTypeDescription
pProperty

The property to set. One of: - rect : a standard rect string in livecode (left,top,right,bottom) - visible : true or false - center coordinate : a location in decimal coordinates (latitude,longitude) - region : the width,height in metres to display within the map - shows user location : true or false - scroll enabled : true or false - user tracking mode : (iOS 5.0+) one of:

 * none
 * follow
 * follow with heading
  • zoom enabled : true or false
  • map type : map type - one of:

    • standard
    • hybrid
    • satellite
pValue

The value to set the property.

pAnimated

(optional with "false" default) true or false with true as default is applicable to the following properties:|center coordinate|region|user tracking mode - false - true

Example
mergMKSet "rect",the rect of me
put iphoneCurrentLocation() into tLocation
mergMKSet "center coordinate", (tLocation["latitude"],tLocation["longitude"])
mergMKSet "visible",true
Description

Set the properties of the map

Tagsexternals