Label parameters in examples

Andy P. 2024-08-30 00:39:05 +01:00
parent 0f2109b9f7
commit 7549599c7c

@ -68,7 +68,12 @@ To create a new marker you need a MarkerSet. You can either use an existing Mark
## Creating a new MarkerSet ## Creating a new MarkerSet
```java ```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. 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 ```java
String htmlLabel = "<div>Hello World</div>" String htmlLabel = "<div>Hello World</div>"
Marker marker = set.createMarker("uniqueMarkerId", htmlLabel, true, Marker marker = set.createMarker(
"world", 10, 20, 30, icon, false); /* Marker ID */ "uniqueMarkerId",
/* Marker label */ htmlLabel,
/* Process label as HTML */ true,
/* World to display marker in */ "world",
/* X coordinate */ 10,
/* Y coordinate */ 20,
/* Z coordinate */ 30,
/* Related MarkerIcon object */ icon,
/* Marker is persistent */ false
);
``` ```