Skip to content

Commit 0fd90e3

Browse files
committed
solved warnings.
1 parent b643a99 commit 0fd90e3

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

folium/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from branca.colormap import (ColorMap, LinearColormap, StepColormap)
88

99

10-
from folium.folium import Map, initialize_notebook, CircleMarker, RectangleMarker, Polygon
10+
from folium.folium import Map, initialize_notebook, CircleMarker
1111
from folium.map import (FeatureGroup, FitBounds, Icon, LayerControl, Marker,
1212
Popup, TileLayer)
1313
from folium.features import (ClickForMarker, CustomIcon, DivIcon,

folium/folium.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
from branca.six import text_type, binary_type
1818

1919
from .map import LegacyMap, Icon, Marker, Popup, FitBounds
20-
from .features import (WmsTileLayer, RegularPolygonMarker, Vega, GeoJson,
21-
CircleMarker, RectangleMarker, Polygon, LatLngPopup,
20+
from .features import (WmsTileLayer, RegularPolygonMarker, Vega,
21+
GeoJson, CircleMarker, LatLngPopup,
2222
ClickForMarker, TopoJson, PolyLine, MultiPolyLine,
2323
)
2424

tests/test_folium.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import branca.element
2626

2727
from folium.map import Popup, Marker, FitBounds, FeatureGroup
28-
from folium.features import GeoJson, TopoJson, PolyLine, MultiPolyLine
28+
from folium.features import GeoJson, TopoJson, PolyLine, MultiPolyLine, RectangleMarker, Polygon
2929
from folium.plugins import ImageOverlay
3030

3131
rootpath = os.path.abspath(os.path.dirname(__file__))
@@ -246,7 +246,7 @@ def test_rectangle_marker(self):
246246

247247
# Single Rectangle marker.
248248
bounds = [45.60, -122.8, 45.61, -122.7]
249-
self.map.add_child(folium.RectangleMarker(bounds=bounds, popup='Hi'))
249+
self.map.add_child(RectangleMarker(bounds=bounds, popup='Hi'))
250250
marker = list(self.map._children.values())[-1]
251251
rect_1 = rect_templ.render({'RectangleMarker': marker.get_name(),
252252
'location': [45.60, -122.8, 45.61, -122.7],
@@ -259,7 +259,7 @@ def test_rectangle_marker(self):
259259

260260
# Second Rectangle marker.
261261
bounds = [45.70, -122.9, 45.75, -122.5]
262-
self.map.add_child(folium.RectangleMarker(bounds=bounds, popup='Hi'))
262+
self.map.add_child(RectangleMarker(bounds=bounds, popup='Hi'))
263263
marker = list(self.map._children.values())[-1]
264264
rect_2 = rect_templ.render({'RectangleMarker': marker.get_name(),
265265
'location': [45.70, -122.9, 45.75, -122.5],
@@ -288,7 +288,7 @@ def test_polygon(self):
288288
[35.6720, 139.7606],
289289
[35.6682, 139.7588],
290290
[35.6663, 139.7627]]
291-
self.map.add_child(folium.Polygon(locations=locations, popup='Hi'))
291+
self.map.add_child(Polygon(locations=locations, popup='Hi'))
292292
marker = list(self.map._children.values())[-1]
293293
polygon_1 = polygon_templ.render({'Polygon': marker.get_name(),
294294
'location': locations,
@@ -308,9 +308,9 @@ def test_polygon(self):
308308
[35.5720, 138.7606],
309309
[35.5682, 138.7588],
310310
[35.5663, 138.7627]]
311-
self.map.add_child(folium.Polygon(locations=locations, color='red',
312-
fill_color='red', fill_opacity=0.7,
313-
weight=3, popup='Hi'))
311+
self.map.add_child(Polygon(locations=locations, color='red',
312+
fill_color='red', fill_opacity=0.7,
313+
weight=3, popup='Hi'))
314314
marker = list(self.map._children.values())[-1]
315315
polygon_2 = polygon_templ.render({'Polygon': marker.get_name(),
316316
'location': locations,

0 commit comments

Comments
 (0)