Skip to content
Lukas Rieger edited this page Oct 5, 2020 · 4 revisions

Markers and documentation for them are still in early development, here is some quick info of the currently possible:

To create markers, you create a markers.json in the bluemap/web/data folder and configure them like this as an example:

{
  "markerSets": [
    {
      "id": "testmarker",
      "label": "Testmarker",
      "toggleable": true,
      "defaultHide": true,
      "marker": [
        {
          "id": "poi1",
          "type": "poi",
          "map": "world",
          "position": { "x": 10.0, "y": 70.023, "z": -5.234 },
          "minDistance": 0.0,
          "maxDistance": 100000.0,
          "label": "poi1",
          "newTab": true,
          "icon": "data/images/test/icon.png",
          "iconAnchor": { "x": 10, "y": 15 }
        },
        {
          "id": "shape1",
          "type": "shape",
          "map": "world",
          "position": { "x": 0.0, "y": 70.023, "z": -5.234 },
          "minDistance": 0.0,
          "maxDistance": 100000.0,
          "label": "shape1",
          "newTab": true,
          "shape": [
            { "x": 0.0, "z": 0.0 },
            { "x": 0.0, "z": 10.0 },
            { "x": 5.0, "z": 10.0 },
            { "x": 5.0, "z": 0.0 }
          ],
          "height": 70.0,
          "depthTest": false,
          "borderColor": { "r": 255, "g": 0, "b": 0, "a": 0.78431374 },
          "fillColor": { "r": 200, "g": 0, "b": 0, "a": 0.39215687 }
        }
      ]
    }
  ]
}

This wiki has moved!

It now lives here :)

Clone this wiki locally