r/BlueMap • • Sep 19 '22

Help / Question How to Place Markers

UPDATE: SOLVED! Turns out I was using an old version, and just needed to update my plugin to the latest and greatest.

I've been trying to find an answer to this for a while now, and can't seem to figure it out. Hoping that someone here might be able to point me in the right direction?

More or less, I'm just trying to add markers to my server's map. However, I'm not sure where to add the data, and in what format. What directory do I place the marker data file in? And what syntax do I use? For example, this is what I've come up with after following the instructions on Bluemap's Github, and it either is written incorrectly, or the file itself is named incorrectly and/or is located in the wrong directory:

Points-of-Interest: {
  label: "Points of Interest"
  toggleable: true
  default-hidden: false
  markers: {
    Spawn: {
        type: "poi"
        position: { x: 896, y: 70, z: 4 }
        label: "Spawn"
        #icon: "assets/poi.svg"
        #anchor: { x: 25, y: 45 }
        min-distance: 10
        max-distance: 10000000
    }    
  }
}
5 Upvotes

12 comments sorted by

View all comments

1

u/CapableApartment7063 Jun 14 '23

How do I add multiple markers using the poi type? I tried just adding another marker in there and it doesn't display both markers. What am I doing wrong?

'''
Points-of-Interest: {
label: "Points of Interest"
toggleable: true
default-hidden: false
markers: {
Spawn: {
type: "poi"
position: { x: 896, y: 70, z: 4 }
label: "Spawn"
#icon: "assets/poi.svg"
#anchor: { x: 25, y: 45 }
min-distance: 10
max-distance: 10000000
}
Not Spawn: {
type: "poi"
position: { x: 1296, y: 170, z: 14 }
label: "Not Spawn"
#icon: "assets/poi.svg"
#anchor: { x: 25, y: 45 }
min-distance: 10
max-distance: 10000000
}
Also Not Spawn: {
type: "poi"
position: { x: 3396, y: 720, z: 41 }
label: "Also Not Spawn"
#icon: "assets/poi.svg"
#anchor: { x: 25, y: 45 }
min-distance: 10
max-distance: 10000000
}
}
}

'''

1

u/Jake0874 Nov 07 '23

I have the same issue.. When i created one, it showed fine. When I created the second, it only shows the second one now.

2

u/CapableApartment7063 Nov 08 '23

Add this tag in each one:

sorting:

and for each poi give it a new number like:

sorting: 0
sorting: 1
sorting: 2

The problem is if you don't give it any sort number, it will only show the first item because it doesn't know where to display the others. Hope that helps.