PathOptions class

Inheritance
Implementers
Annotations
  • @JS()
  • @anonymous

Constructors

PathOptions({String? pane, String? attribution, bool? interactive, bool? stroke, String? color, double? weight, double? opacity, String? lineCap, String? lineJoin, String? dashArray, String? dashOffset, bool? fill, String? fillColor, double? fillOpacity, String? fillRule, Renderer? renderer, String? className})
factory

Properties

attribution String
String to be shown in the attribution control, e.g. "© OpenStreetMap contributors". It describes the layer data and is often a legal obligation towards copyright holders and tile providers.
getter/setter pairinherited
bubblingMouseEvents bool
When true, a mouse event on this layer will trigger the same event on the map (unless L.DomEvent.stopPropagation is used).
getter/setter pairinherited
className String
Custom class name set on an element. Only for SVG renderer.
getter/setter pair
color String
Stroke color
getter/setter pair
dashArray String
A string that defines the stroke dash pattern. Doesn't work on Canvas-powered layers in some old browsers.
getter/setter pair
dashOffset String
A string that defines the distance into the dash pattern to start the dash. Doesn't work on Canvas-powered layers in some old browsers.
getter/setter pair
fill bool
Whether to fill the path with color. Set it to false to disable filling on polygons or circles.
getter/setter pair
fillColor String
Fill color. Defaults to the value of the color option
getter/setter pair
fillOpacity double
Fill opacity.
getter/setter pair
fillRule String
A string that defines how the inside of a shape is determined. bubblingMouseEvents When true, a mouse event on this path will trigger the same event on the map (unless L.DomEvent.stopPropagation is used).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
interactive bool
If false, the layer will not emit mouse events and will act as a part of the underlying map.
getter/setter pairinherited
lineCap String
A string that defines shape to be used at the end of the stroke.
getter/setter pair
lineJoin String
A string that defines shape to be used at the corners of the stroke.
getter/setter pair
opacity double
Stroke opacity
getter/setter pair
pane String
By default the layer will be added to the map's overlay pane. Overriding this option will cause the layer to be placed on another pane by default.
getter/setter pairinherited
renderer Renderer
Use this specific instance of Renderer for this path. Takes precedence over the map's default renderer.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stroke bool
Whether to draw stroke along the path. Set it to false to disable borders on polygons or circles.
getter/setter pair
weight double
Stroke width in pixels
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited