-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GeoJsonTooltip warn for GeometryCollection #988
Changes from 127 commits
287ac36
2491e19
6290a5b
fda9729
bde7a2b
b5f9282
8e5168c
73b1f4d
d03bf2f
8ce80a6
bb325f4
bd2a12f
c73686e
5b9cb8b
5525df0
cc89971
bb825f0
5c9c425
16d44f0
2fb3437
9933f58
c8d404d
90d7de9
bfd277b
84811a0
76c9622
f69bb30
cf116fe
f9e3eb8
d9f4109
ac3e03e
3dc30cb
25e80a1
405245c
ee8c427
12e04f8
5a00b8b
f40d145
e1431a2
86b29df
844ec5b
9364c3f
b95f840
856aa80
7eaa85e
e4978be
1e5242f
de5606a
76af841
31a7685
c0ea0b5
8fa9122
2478531
eac16da
0725b4b
99db68d
200155b
f7cee1b
9b5ecc8
4e54b19
6ef92db
1f3c402
f860855
292d54d
7a7ee05
cdda09d
bbfbb49
98e7f45
461bf11
875c6ba
3eb8816
c2fa01e
9226117
e5e3e48
9d00638
46a8f05
a530153
f8eea8a
3f9ebab
812ec07
f3e66a4
a3d9af2
4c5f94a
1774c1b
aad6580
2d536db
9098a75
0be87d5
919f7d9
cc74c27
cba08d6
bd51b9e
09b410a
742d5e3
888096c
6ae615b
8493787
a2d4206
61e61e6
6824b32
7a3ffb5
49970a2
28ddf28
7ebceb8
04bbcc4
0d14fe6
ecce466
1f01ff5
ab64d08
e4cfdef
7732c10
eb61a00
fe884d6
d392d09
3694a40
1d5cfa0
8fce636
f5bfa3e
60a1220
7ba38b3
b7bebed
bb3b9db
d909e4b
071b220
2bdfb99
2a09446
7ecb4fe
19f6d9b
4aebbc9
4a8eec2
d913b41
bf68fa9
8de05c3
cf71841
0d23dec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ | |
|
||
import os | ||
|
||
import warnings | ||
|
||
from branca.element import Element | ||
from branca.six import text_type | ||
|
||
|
@@ -104,3 +106,14 @@ def test_color_line(): | |
opacity=1) | ||
m.add_child(color_line) | ||
m._repr_html_() | ||
|
||
def test_geojson_tooltip(): | ||
m = folium.Map([30.5, -97.5], zoom_start=10) | ||
geojson = folium.GeoJson("./kuntarajat.geojson", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. F841 local variable 'geojson' is assigned to but never used |
||
tooltip=folium.GeoJsonTooltip( | ||
fields=['code','name'] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. E231 missing whitespace after ',' |
||
)).add_to(m) | ||
with warnings.catch_warnings(record=True) as w: | ||
warnings.simplefilter('always') | ||
m._repr_html_() | ||
assert isinstance(w[-1].category, UserWarning), "GeoJsonTooltip GeometryCollection test failed." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. W292 no newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E302 expected 2 blank lines, found 1