Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Circle Marker

William Blake Galbreath edited this page Apr 3, 2024 · 15 revisions

The circle marker is used to draw circles on the map.

API Components

  • center - the point on the map (Point)
  • radius - radius of the circle (double)
  • options* - options for drawing the circle (Options)
  • pane* - pane name for custom css

* is an optional component

What it looks like

insert screenshot of this marker here

API Examples

Circle circle = new Circle("my_circle", new Point(0, 0), 10.0D)
    .setOptions(Options.builder()
        .strokeColor(0xFF0000FF)
        .fillColor(0x330000FF)
        .tooltipContent("Sample text!")
        .build()
    );

JSON Structure

Extended JSON:

{
  "type": "circ",
  "data": {
    "key": "my_circle",
    "center": {
      "x": 0,
      "z": 0
    },
    "radius": 10.0
  ],
  "options": {
    "stroke": {
      "color": 0xFF0000FF
    },
    "fill": {
      "color": 0x330000FF
    },
    "tooltip": {
      "content": "Sample text!"
    }
  }
}