Interface CanvasLayer.Geometry

All Known Subinterfaces:
CanvasLayer.Point, CanvasLayer.Polygon, CanvasLayer.Polyline
Enclosing interface:
CanvasLayer

public static interface CanvasLayer.Geometry
A common interface for a wrapper encapsulating a vector geometry on the canvas and providing an API to control it.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes popup of the geometry.
    void
    Closes tooltip of the geometry.
    org.locationtech.jts.geom.Geometry
    Returns a JTS geometry.
    boolean
    Returns true if the geometry is modifiable on a canvas, otherwise false.
    void
    Opens popup of the geometry if popup text is specified.
    void
    Opens tooltip of the geometry if tooltip text is specified.
    setEditable(boolean editable)
    Sets whether the geometry is to be modifiable on a canvas.
  • Method Details

    • getGeometry

      org.locationtech.jts.geom.Geometry getGeometry()
      Returns a JTS geometry.
    • setEditable

      CanvasLayer.Geometry setEditable(boolean editable)
      Sets whether the geometry is to be modifiable on a canvas.
    • isEditable

      boolean isEditable()
      Returns true if the geometry is modifiable on a canvas, otherwise false.
    • openPopup

      void openPopup()
      Opens popup of the geometry if popup text is specified.
    • openTooltip

      void openTooltip()
      Opens tooltip of the geometry if tooltip text is specified.
    • closePopup

      void closePopup()
      Closes popup of the geometry.
    • closeTooltip

      void closeTooltip()
      Closes tooltip of the geometry.