From 7549599c7cd480518626b27792a50a8fcee5c959 Mon Sep 17 00:00:00 2001 From: "Andy P." <19779808+Blitheness@users.noreply.github.com> Date: Fri, 30 Aug 2024 00:39:05 +0100 Subject: [PATCH] Label parameters in examples --- Dynmap-API.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/Dynmap-API.md b/Dynmap-API.md index 9f1de81..e1b68aa 100644 --- a/Dynmap-API.md +++ b/Dynmap-API.md @@ -68,7 +68,12 @@ To create a new marker you need a MarkerSet. You can either use an existing Mark ## Creating a new MarkerSet ```java -MarkerSet set = markerAPI.createMarkerSet("setId", "Display Name", null, false); +MarkerSet set = markerAPI.createMarkerSet( + /* Marker set ID */ "setId", + /* Marker set label */ "Display Name", + /* Set of permitted marker icons */ null, + /* Is marker set persistent */ false +); ``` With the MarkerSet instance you can change the attributes. You can hide that set by default, set layer priorities, min and max zoom levels. For a full reference take a look in the MarkerSet interface. @@ -99,6 +104,15 @@ plugin.getResource("myicon.png"); ```java String htmlLabel = "