-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom.markers.js
101 lines (82 loc) · 3.1 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
/*
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 2: Marker with text
{
x: 0,
z: 0,
image: "house.pin.png",
imageAnchor: [0.5, 1],
imageScale: 0.15,
text: "Spawn",
textColor: "white",
offsetX: 0,
offsetY: 20,
font: "20px Minecraftia, sans-serif",
},
// Example 3: Text only
{
x: -24,
z: 337,
text: "Main Comunity",
textColor: "white",
offsetX: 0,
offsetY: 0,
font: "15px Minecraftia, sans serif",
},
// add your markers here
{
x: -286.959869142667,
z: 563.328642525922,
image: "items/minecraft_gunpowder.png",
imageAnchor: [.5, .5],
imageScale: .5,
text: "Creaper Farm",
textColor: "white",
offsetX: 0,
offsetY: 20,
font: "12px Minecraftia, sans-serif",
},
{
x: -64.74459281854790,
z: 1775.300000011920,
image: "items/minecraft_mossy_stone_bricks.png",
imageAnchor: [.5, .5],
imageScale: .5,
text: "Stronghold Entrance",
textColor: "white",
offsetX: 0,
offsetY: 20,
font: "12px Minecraftia, sans-serif",
},
// do not delete the following two closing brackets
]
}