Polylines
To add one or more polylines, use the polyline
parameter one or multiple times in the URL query in the following format:
polyline=polylineStyle|polylineCoord1|polylineCoord2|...
-
polylineCoord:
- Lat, Lon Coordinates: Coordinates in
lat, lon
format, separated by|
. You need at least two coordinates. - Encoded Polylines: You can also use Google Encoded Polyline format.
- Lat, Lon Coordinates: Coordinates in
-
polylineStyle: Customize the polyline with:
Parameter Default Description weight
6
Sets the stroke width of the polyline. color
#0000ff
Defines the stroke color of the polyline. fill
Specifies the fill color of the polyline. strokeDasharray
(none) Pattern of dashes and gaps, e.g., 5,5
see stroke-dasharray.
Note: For each pair of coordinates in the input, a geodesic line is generated between them.