Skip to content

Commit 20498e1

Browse files
committed
Rename Polygon to PolygonMarker
1 parent 8fd628d commit 20498e1

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

folium/features.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -814,8 +814,10 @@ def __init__(self, bounds, color='black', weight=1, fill_color='black',
814814
815815
Example
816816
-------
817-
>>> RectangleMarker(bounds=[[35.681, 139.766], [35.691, 139.776]],
818-
color="blue", fill_color="red", popup='Tokyo, Japan')
817+
>>> RectangleMarker(
818+
... bounds=[[35.681, 139.766], [35.691, 139.776]],
819+
... color='blue', fill_color='red', popup='Tokyo, Japan'
820+
... )
819821
820822
"""
821823
super(RectangleMarker, self).__init__(bounds, popup=popup)
@@ -840,11 +842,11 @@ def __init__(self, bounds, color='black', weight=1, fill_color='black',
840842
""")
841843

842844

843-
class Polygon(Marker):
845+
class PolygonMarker(Marker):
844846
def __init__(self, locations, color='black', weight=1, fill_color='black',
845847
fill_opacity=0.6, popup=None, latlon=True):
846848
"""
847-
Creates a Polygon object for plotting on a Map.
849+
Creates a PolygonMarker object for plotting on a Map.
848850
849851
Parameters
850852
----------

0 commit comments

Comments
 (0)