-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.markers.js
133 lines (102 loc) · 3.42 KB
/
custom.markers.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/*
This is a JavaScript file you can edit to add custom markers to the map.
uNmINeD does not overwrite this file during map generation.
Steps:
1. Edit this file using Notepad or a code editor (do not use document editors like Microsoft Word)
2. Change the line "isEnabled: false," to "isEnabled: true," to display the markers
3. Change or remove the example markers
4. Add your own markers
Marker format:
{
x: X coordinate of the marker (in Minecraft block units),
z: Z coordinate of the marker (in Minecraft block units),
image: marker image URL to display (in quotes),
imageScale: scale of the image (e.g. 1 = display full size, 0.5 = display half size),
imageAnchor: [0.5, 1] means the tip of the pin is at the center-bottom of the image (see OpenLayers documentation for more info),
text: marker text do display (in quotes),
textColor: text color in HTML/CSS format (in quotes),
offsetX: horizontal pixel offset of the text,
offsetY: vertical pixel offset of the text,
font: text font in HTML/CSS format (in quotes),
},
Things to keep in mind:
* There are opening and closing brackets for each marker "{" and "}"
* Property names are case sensitive (i.e. "textColor" is okay, "TextColor" is not)
* There is a comma (",") at the end of each line except the opening brackets ("{")
You can use https://mapmarker.io/editor to generate custom pin images.
Use the imageScale property if the pin image is too large.
*/
UnminedCustomMarkers = {
isEnabled: true,
markers: [
// Example 1: Simple marker
// Example 2: Marker with text
// Example 3: Text only
// add your markers here
{
x: 0,
z: 0,
image: "custom.pin.png",
imageAnchor: [0.5, 1],
imageScale: 0.1,
text: "Spawn",
textColor: "red",
offsetX: 0,
offsetY: 20,
font: "bold 20px Calibri,sans serif",
},
{
x: -1409,
z: 1250,
image: "custom.pin.png",
imageAnchor: [0.5, 1],
imageScale: 0.5,
text: "The End",
textColor: "red",
offsetX: 0,
offsetY: 20,
font: "bold 20px Calibri,sans serif",
},
{
x: -715,
z: 2604,
image: "boomtown.png",
imageAnchor: [0.5, 1],
imageScale: 0.2,
offsetX: 0,
offsetY: 30,
font: "bold 20px Calibri,sans serif",
},
{
x: 6953,
z: 9868,
image: "structure.png",
imageAnchor: [0.5, 1],
imageScale: 0.5,
offsetX: 0,
offsetY: 20,
font: "bold 20px Calibri,sans serif",
},
{
x: 5955,
z: 965,
image: "flatlands.png",
imageAnchor: [0.5, 1],
imageScale: 1,
offsetX: 40,
offsetY: 0,
font: "bold 20px Calibri,sans serif",
},
{
x: 187,
z: 1876,
image: "keyeast.png",
imageAnchor: [0.5, 1],
imageScale: 0.2,
offsetX: 0,
offsetY: 10,
font: "bold 20px Calibri,sans serif",
},
// do not delete the following two closing brackets
]
}