Class WLeafletMap.Tooltip

Enclosing class:
WLeafletMap

public static class WLeafletMap.Tooltip extends WLeafletMap.AbstractOverlayItem
A WLeafletMap.Tooltip that can be added to the WLeafletMap.

Tooltips are interactive windows that can be opened on the map, typically linked to a map location or a WLeafletMap.Marker.

Note: Multiple tooltips can be added to a map (using coordinates), but only one tooltip at the time can be linked to each WLeafletMap.Marker.

See Also:
  • Constructor Details

    • Tooltip

      public Tooltip(WLeafletMap.Coordinate pos)
      Create a tooltip with the given coordinates.
    • Tooltip

      public Tooltip()
      Create a tooltip with the given coordinates.

      Calls this(new WLeafletMap.Coordinate(0, 0))

    • Tooltip

      public Tooltip(WWidget content)
      Create a tooltip with the given content.
    • Tooltip

      public Tooltip(CharSequence content)
      Create a tooltip with the given content.

      This is a shortcut for creating a tooltip with a WText widget as content.

    • Tooltip

      public Tooltip(WLeafletMap.Coordinate pos, WWidget content)
      Create a tooltip with the given content and coordinates.
    • Tooltip

      public Tooltip(WLeafletMap.Coordinate pos, CharSequence content)
      Create a tooltip with the given content and coordinates.

      This is a shortcut for creating a tooltip with a WText widget as content.

  • Method Details