All Implemented Interfaces:
Serializable, Evented, SupportsMouseEvents, HasStyle, Identifiable, LayerPopupFunctions, LayerTooltipFunctions, ExecutableFunctions, PathFunctions

public class MultiPolygon extends Polygon
* A class for drawing multi polygon overlays on a map.
See Also:
  • Constructor Details

    • MultiPolygon

      public MultiPolygon(MultiPolygon.MultiPolygonStructure latlngs)
      Instantiates a multi polygon from the given structure of coordinates.
      Parameters:
      latlngs - the structure holding the coordinates of each polygon
  • Method Details

    • getLeafletType

      public String getLeafletType()
      Returns the Leaflet type name of this object, used to instantiate the matching class on the client side.
      Overrides:
      getLeafletType in class LeafletObject
      Returns:
      the Leaflet type name
    • getLatlngs

      Gets the geographical points that make up this polyline.
      Overrides:
      getLatlngs in class Polygon
      Returns:
      the coordinates of the polyline