This section covers an advanced feature of Pl3xMap and assumes a good understanding of how JSON works. If you are not familiar with JSON, it is recommended to gain some knowledge before proceeding with custom markers configuration.
All your custom markers live in the markers/ directory.
It automatically gets populated with folders that correspond to the "worlds" or "dimensions" that are available in your server.
Each JSON file is treated as it's own "layer" that can hold multiple markers.
You can run /map reload to update the map with your new markers anytime you make any changes.
Note
Keys that end with a question mark indicate an optional key/object. Types that end with a question mark indicate that they can be set as null.
Layer JSON file
Layer object
Key
Type
Description
key
string
Key for the layer. This is a unique identifier.
label
string
Label of the layer.
updateInterval?
integer
Layer's update interval (in seconds).
showControls?
boolean
Whether to show the layer in the control box.
defaultHidden?
boolean
Whether the layer is hidden by default in the control box.
priority?
integer
The indexed order for this layer in the control box. Falls back to alphanumeric ordering based on label if there are order conflicts.
zIndex?
integer
The z-index for this layer. Used in determining what layers are visually on top of other layers. Falls back to alphanumeric ordering based on name if there are order conflicts. Defaults to priority value.
The stroke for each subpath does not extend beyond its two endpoints. On a zero length subpath, the path will not be rendered at all.
round
At the end of each subpath the stroke will be extended by a half circle with a diameter equal to the stroke width. On a zero length subpath, the stroke consists of a full circle centered at the subpath's point.
square
At the end of each subpath the stroke will be extended by a rectangle with a width equal to half the width of the stroke and a height equal to the width of the stroke. On a zero length subpath, the stroke consists of a square with its width equal to the stroke width, centered at the subpath's point.
A sharp corner is to be used to join path segments. The corner is formed by extending the outer edges of the stroke at the tangents of the path segments until they intersect.
round
A round corner is to be used to join path segments.
bevel
A bevelled corner is to be used to join path segments.
Fill object
Key
Type
Default
Description
enabled
boolean
true
Whether to fill the path with color. Setting to false will disable filling on polygons or circles.
The value nonzero determines the "insideness" of a point in the shape by drawing a ray from that point to infinity in any direction, and then examining the places where a segment of the shape crosses the ray. Starting with a count of zero, add one each time a path segment crosses the ray from left to right and subtract one each time a path segment crosses the ray from right to left. After counting the crossings, if the result is zero then the point is outside the path. Otherwise, it is inside.
evenodd
The value evenodd determines the "insideness" of a point in the shape by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses. If this number is odd, the point is inside; if even, the point is outside.
Tooltip object
Key
Type
Default
Description
content
string
N/A
The content of the tooltip. HTML is valid here. If null, the tooltip is effectively disabled.
The margin between the popup and the top left corner of the map view after auto panning was performed. If set, overrides the top left values of autoPanPadding.
The margin between the popup and the bottom right corner of the map view after auto panning was performed. If set, overrides the bottom right values of autoPanPadding.
The margin between the popup and the map view after auto panning was performed. This is the equivalent of the same values in both autoPanPaddingTopLeft and autoPanPaddingBottomRight.
keepInView
boolean
false
Whether the popup should stay in view. If set to true, it will prevent users from panning the popup off the screen while it is open.
closeButton
boolean
true
Whether the popup has a close button.
autoClose
boolean
true
Whether the popup automatically closes when another popup is opened.