Type String Event mapLocation Revision Current Public Release (2018.3326) Keywords mapLocation, errorMessage
The error message if event.isError is true
.
local function mapLocationHandler( event ) -- handle mapLocation event here if event.isError then print ( "Error: " .. event.errorMessage ) else print ( "The specified string is at: " .. event.latitude .. ", " .. event.longitude ) end end myMap:requestLocation( "1900 Embarcadero Road, Palo Alto, CA" , mapLocationHandler ) |