Skip to content

Commit 2a822da

Browse files
authored
Merge branch 'master' into fast-marker-cluster
2 parents f04edb7 + cb042c1 commit 2a822da

29 files changed

Lines changed: 3202 additions & 305 deletions

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
folium/_version.py export-subst

.stickler.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
linters:
2+
flake8:
3+
max-line-length: 100
4+
max-complexity: 10
5+
files:
6+
ignore: ['*.ipynb', 'conf.py']

.travis.yml

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,36 @@ matrix:
1010
fast_finish: true
1111
include:
1212
- python: 2.7
13-
env: TEST_TARGET=branca_release
14-
- python: 3.5
15-
env: TEST_TARGET=branca_release
16-
- python: 3.5
17-
env: TEST_TARGET=coding_standards
13+
env: TEST_TARGET=default
1814
- python: 3.5
15+
env: TEST_TARGET=default
16+
- python: 3.6
17+
env: TEST_TARGET=default
18+
- python: 3.6
1919
env: TEST_TARGET=notebooks
2020
- python: 2.7
21-
env: TEST_TARGET=branca_latest
22-
- python: 3.5
23-
env: TEST_TARGET=branca_latest
21+
env: TEST_TARGET=latest_branca
22+
- python: 3.6
23+
env: TEST_TARGET=latest_branca
2424
allow_failures:
2525
- python: 2.7
26-
env: TEST_TARGET=branca_latest
27-
- python: 3.5
28-
env: TEST_TARGET=branca_latest
26+
env: TEST_TARGET=latest_branca
27+
- python: 3.6
28+
env: TEST_TARGET=latest_branca
2929

3030
before_install:
3131
- wget http://bit.ly/miniconda -O miniconda.sh
3232
- bash miniconda.sh -b -p $HOME/miniconda
3333
- export PATH="$HOME/miniconda/bin:$PATH"
3434
- conda update --yes --all
3535
- conda config --add channels conda-forge --force
36-
- conda create --yes -n TEST python=$TRAVIS_PYTHON_VERSION --file requirements.txt --file requirements-dev.txt
36+
- conda create --yes -n TEST python=$TRAVIS_PYTHON_VERSION phantomjs --file requirements.txt --file requirements-dev.txt
3737
- source activate TEST
3838

39-
- if [[ "$TRAVIS_PYTHON_VERSION" != "3.5" ]]; then
39+
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
4040
conda install --yes mock ;
4141
fi
42-
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then
42+
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
4343
conda install --yes doctr ;
4444
fi
4545

@@ -48,21 +48,17 @@ install:
4848
- python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install folium-${version}.tar.gz && popd
4949

5050
script:
51-
- if [[ $TEST_TARGET == 'branca_release' ]]; then
51+
- if [[ $TEST_TARGET == 'default' ]]; then
5252
py.test -vv --ignore=tests/notebooks/test_notebooks.py ;
5353
fi
5454

55-
- if [[ $TEST_TARGET == 'branca_latest' ]]; then
55+
- if [[ $TEST_TARGET == 'latest_branca' ]]; then
5656
pip install git+https://github.com/python-visualization/branca.git ;
57-
python setup.py test ;
58-
fi
59-
60-
- if [[ $TEST_TARGET == 'coding_standards' ]]; then
61-
find . -type f -name "*.py" ! -name 'conf.py' | xargs flake8 --max-line-length=100 ;
62-
for file in $(find . -type f -name "*.ipynb"); do jupyter nbconvert --template=tests/strip_markdown.tpl --stdout --to python $file | grep -v '^get_ipython' | flake8 - --ignore=W391,E226,E402 --max-line-length=100 --show-source ; done ;
57+
py.test -vv --ignore=tests/notebooks/test_notebooks.py ;
6358
fi
6459

6560
- if [[ $TEST_TARGET == 'notebooks' ]]; then
61+
for file in $(find . -type f -name "*.ipynb"); do jupyter nbconvert --template=tests/strip_markdown.tpl --stdout --to python $file | grep -v '^get_ipython' | flake8 - --ignore=W391,E226,E402 --max-line-length=100 --show-source ; done ;
6662
py.test -vv tests/notebooks/test_notebooks.py ;
67-
doctr deploy --built-docs=examples/results --gh-pages-docs=gallery ;
63+
doctr deploy --built-docs=examples/results gallery ;
6864
fi

CHANGES.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
0.4.0
2+
~~~~~
3+
- Added support for subdomains options in TileLayer (damselem #623)
4+
15
0.3.0
26
~~~~~
37

48
- Added `FastMarkerCluster` (James Gardiner #585 (proposed by @ruoyu0088))
9+
- Added style option to 'Timestamped geojson' plugin (soymsk #627)
510
- Switched to `leaflet 1.0.1` (juoceano #531 and ocefpaf #535)
611
- Added `continuous_world`, `world_copy_jump`, and `no_wrap` options (ocefpaf #508)
712
- Update font-awesome to 4.6.3 (ocefpaf #478)
@@ -13,6 +18,8 @@
1318
- Added `fullscreen` plugin (sanga #437)
1419
- Added `smooth_factor `option to `GeoJSON`, `TopoJSON` and `Choropleth` (JamesGardiner #428)
1520
- `Map` object now accepts Leaflet global switches (sgvandijk #424)
21+
- Added weight option to CircleMarker (palewire #581)
22+
- Added requests support to enable http(s) and ftp for geo_path parameter (jreades #602)
1623

1724
Bug Fixes
1825

@@ -21,6 +28,7 @@ Bug Fixes
2128
- Fixed MIME type (text/plain) is not executable (talespaiva #440)
2229
- Update Travis-CI testing to incorporate branca and fix notebook tests (ocefpaf #436)
2330
- Removed MultiPolyLine and MultiPolygon, both are handled by PolyLine and PolyLine in leaflet 1.0.* (ocefpaf #554)
31+
- Removed deprecated MapQuest tiles (HashCode55 #562)
2432

2533
0.2.1
2634
~~~~~

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ recursive-include folium *.py
44
recursive-include folium *.js
55
recursive-include folium/plugins *
66
recursive-include folium/templates *
7+
include versioneer.py
8+
prune examples/

docs/contributing.rst

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
Contributing
2-
============
1+
Contributing to folium
2+
======================
33

4-
Choose the sandbox folder of your choice (`~/sandbox` for example)
5-
::
4+
We welcome contributions to folum in many forms.
65

7-
$ cd ~/sandbox
6+
Examples of contributions include:
87

9-
Clone `folium` from github:
10-
::
11-
12-
$ git clone https://github.com/python-visualization/folium
13-
14-
Push code to your fors, and write a pull request.
15-
16-
TODO: end up this section.
8+
* Code patches
9+
* Documentation improvements
10+
* Bug reports and patch reviews

docs/examples.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
Examples
22
========
33

4-
You shall take a look at folium's example gallery_.
4+
Take a look at folium's example gallery_.
55

66
.. _gallery: http://nbviewer.jupyter.org/github/python-visualization/folium/tree/master/examples/
77

8-
If this is not enough, you may find fancier examples here_.
9-
10-
.. _here: http://nbviewer.jupyter.org/github/ocefpaf/folium_notebooks/tree/master/

examples/Features.ipynb

Lines changed: 95 additions & 90 deletions
Large diffs are not rendered by default.

examples/Folium_and_mplleaflet.ipynb

Lines changed: 29 additions & 31 deletions
Large diffs are not rendered by default.

examples/GeoJSON_and_choropleth.ipynb

Lines changed: 171 additions & 67 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)