Skip to content

Commit b37df58

Browse files
committed
Adding details to CHANGES and requirements. Tweaked pattern for startswith on URL checking.
1 parent c5c9dc4 commit b37df58

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- Added `smooth_factor `option to `GeoJSON`, `TopoJSON` and `Choropleth` (JamesGardiner #428)
1414
- `Map` object now accepts Leaflet global switches (sgvandijk #424)
1515
- Added weight option to CircleMarker (palewire #581)
16+
- Added requests support to enable http(s) and ftp for geo_path parameter
1617

1718
Bug Fixes
1819

folium/folium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def choropleth(self, geo_path=None, geo_str=None, data_out='data.json',
252252

253253
# Create GeoJson object
254254
if geo_path:
255-
if geo_path.lower().startswith(('http', 'ftp', 'https')):
255+
if geo_path.lower().startswith(('http:', 'ftp':, 'https:')):
256256
geo_data = requests.get(geo_path).json()
257257
else:
258258
geo_data = open(geo_path)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
Jinja2
22
branca
33
six
4+
requests

0 commit comments

Comments
 (0)