Code: Select all
on preOpenStack
if the environment is "mobile" then
mobileStartTrackingLocation
end if
end preOpenStack
on openStack
mergMKCreate
mergMKSet "rect", the rect of graphic "map"
put mobileCurrentLocation() into theLocation
mergMKSet "center coordinate",(theLocation["latitude"],theLocation["longitude"])
mergMKSet "visible",true
mergMKSet "shows user location",true
mergMKSet "zoom enabled",true
mergMKSet "user tracking mode","follow",true
end openStack