event.longitude

类型 数字
事件 mapLocation
修订版 版本 2024.3703
关键词 mapLocation、longitude

概览

所需位置的经度(单位:度)。

示例

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 )