Skip to main content

Location Picker

Provides a system map component allowing the user to drop a pin to select a geographic location.

Type loc returns a dictionary with latitude and longitude.

KeyTypeDescription
latitudenumberLatitude
longitudenumberLongitude

Example

local group, name

group = 'Utility'
name = 'loc = {latitude, longitude}'

return {
name = string.format('%s - %s', group, name),
description = "Location selection",
arguments = {
{type = 'loc', hint = 'Select a location'},
},
default = {
latitude = 39.92,
longitude = 116.46
},
generator = function(loc)
return string.format('loc = {%f, %f}', loc.latitude, loc.longitude)
end,
}

IMG_0007.PNG