Skip to content

Commit f6f2efc

Browse files
committed
Added documentation about Polylines
1 parent e36150d commit f6f2efc

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/index.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,27 @@ The popup parameter in any marker can be passed a `Vincent <https://github.com/w
158158
vis.to_json('vis.json')
159159
map.polygon_marker(location=[45.5, -122.5], popup=(vis, 'vis.json'))
160160

161+
Other features
162+
--------------
163+
164+
Polyline
165+
~~~~~~~~
166+
167+
You can plot a line by simply passing an iterable of coordinates to the method `line`::
168+
169+
map.line([[45.3288, -121.6625],
170+
[45.324224, -121.657763]
171+
[45.318702, -121.652871]])
172+
173+
You can specify the following parameters:
174+
175+
- `line_color`: line color, either a simple color (blue, black, etc), or a hex string
176+
- `line_weight`: line weight, in pixels
177+
- `line_opacity`: fill opacity
178+
179+
Polylines also support popups, through the `popup` and `popup_on` parameters, similarly to markers.
180+
181+
161182
Data Mapping: GeoJSON and TopoJSON
162183
----------------------------------
163184

0 commit comments

Comments
 (0)