Map

Details

Below, you will find detailed configuration for markers.

Configuration file

config/map.lua
return {
    ---@type boolean
    isEnabled = true,

    -- Default map, used from `available` definition.
    ---@type string
    default = 'normal',

    ---@type AvailableMap[]
    available = {
        {
            id = 'normal',
            name = 'Normal',
            icon = 'fas fa-map',
            minZoom = 2,
            maxZoom = 6,
            url = 'https://maps.static.foo/fd_dark_atlas/{z}/{x}/{y}.png',
        },
        {
            id = 'normal-light',
            name = 'Normal - Light',
            icon = 'fas fa-map-location-dot',
            minZoom = 2,
            maxZoom = 6,
            url = 'https://maps.static.foo/fd_atlas/{z}/{x}/{y}.png',
        },
        {
            id = 'satellite',
            name = 'Satellite',
            icon = 'fas fa-satellite-dish',
            minZoom = 2,
            maxZoom = 6,
            url = 'https://maps.static.foo/fd_satellite/{z}/{x}/{y}.png',
        },
    }
}

Detailed types information

isEnabled boolean

Is dispatch map enabled.

default string

Must match one of the items in available array.

Available maps

Payload

---@class AvailableMap
---@field id string
---@field name string
---@field icon string
---@field minZoom number
---@field maxZoom number
---@field url string

Detailed types information

id string

Map ID. Must be unique

name string

Name which is shown in dispatch.

icon string

Icon which is shown in dispatch.

minZoom number

Minimum zoom.

maxZoom number

Maximum zoom.

url string

URL for the map.

Want a custom map?

Read how to use a custom map.

Copyright © 2025 Felis Development