Map Types
AddMapLayerAction
An event that adds a map layer to the map or miniMap portal. This is used to add custom layers to the map, such as heatmaps or other visualizations.
Members
layer GeoJSONMapLayer
The layer that should be added to the portal.
playerId? string
The ID of the player that created this task. Set by remote action handlers when a task is recieved from a remote player.
portal ("map" | "miniMap")
The portal that the layer should be added to.
taskId (string | number)
The ID of the async task.
type "add_map_layer"
The type of the event. This helps determine how the event should be applied to the state.
uncopiable? boolean
Whether the action can be structure cloned. If true, then the action should not be passed across message ports without special handling.
MapLayer
The kinds of map layers that can be added to the map or miniMapPortal.
RemoveMapLayerAction
An event that is used to remove a map layer from the map or miniMapPortal.
Members
layerId string
The ID of the layer that should be removed.
playerId? string
The ID of the player that created this task. Set by remote action handlers when a task is recieved from a remote player.
taskId (string | number)
The ID of the async task.
type "remove_map_layer"
The type of the event. This helps determine how the event should be applied to the state.
uncopiable? boolean
Whether the action can be structure cloned. If true, then the action should not be passed across message ports without special handling.