Skip to content

Commit 213abe0

Browse files
committed
deploy: 8efb901
1 parent 9a44744 commit 213abe0

168 files changed

Lines changed: 13480 additions & 13194 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dev/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 298ab656afd6d0ba086bc355b6fc7b15
3+
config: c580dbfa0d8a950b34ae6fb03c75ca50
44
tags: 645f666f9bcd5a90fca523b33c5a78b7
-5.58 KB
Loading

dev/_sources/user_guide/plugins/heatmap.md.txt

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,34 @@
11
## Heatmap
22

3-
```{code-cell} ipython3
4-
import numpy as np
3+
This plugin allows you to create a heat map to visualize the density of some feature on the map.
4+
Pass the data as a list of `[latitude, longitude]` pairs in the first argument.
55

6-
data = (
7-
np.random.normal(size=(100, 3)) * np.array([[1, 1, 1]]) + np.array([[48, 5, 1]])
8-
).tolist()
9-
```
6+
As an example let us create a `HeatMap` of pizzerias in Rome using data from OpenStreetMap (2026).
107

118
```{code-cell} ipython3
129
import folium
1310
from folium.plugins import HeatMap
1411

12+
# List of latitude, longitude coordinates of pizza restaurants in Rome (acquired from OpenStreetMap)
13+
pizzeria_coords = [[41.8883, 12.4738], [41.897, 12.5127], [41.8821, 12.4762], [41.8741, 12.5135], [41.8983, 12.4704], [41.8742, 12.5171], [41.9067, 12.4467], [41.8995, 12.4762], [41.8876, 12.4717], [41.9091, 12.4573], [41.9142, 12.4501], [41.8762, 12.517], [41.9103, 12.448], [41.8792, 12.4514], [41.9077, 12.4466], [41.9202, 12.4415], [41.9059, 12.5052], [41.8989, 12.4926], [41.8896, 12.4955], [41.9126, 12.4542], [41.8931, 12.4882], [41.9008, 12.5145], [41.8995, 12.5168], [41.8908, 12.4707], [41.9, 12.5002], [41.9036, 12.462], [41.8984, 12.4754], [41.9117, 12.4416], [41.8926, 12.5057], [41.8974, 12.5128], [41.908, 12.4584], [41.8762, 12.5059], [41.8884, 12.4705], [41.9065, 12.5009], [41.8989, 12.4988], [41.896, 12.4995], [41.9135, 12.4415], [41.9091, 12.4554], [41.8932, 12.4752], [41.8957, 12.5131], [41.8999, 12.4798], [41.8948, 12.4767], [41.9003, 12.4695], [41.9001, 12.4711], [41.9057, 12.4457], [41.9169, 12.4582], [41.8976, 12.4708], [41.8887, 12.4978], [41.9006, 12.4836], [41.91, 12.5014], [41.9084, 12.4571], [41.8756, 12.4476], [41.9013, 12.4846], [41.8737, 12.4475], [41.8734, 12.4478], [41.8738, 12.4654], [41.899, 12.4959], [41.8818, 12.4585], [41.8963, 12.5133], [41.8974, 12.4965], [41.8976, 12.496], [41.88, 12.4757], [41.8868, 12.4719], [41.9076, 12.4978], [41.9047, 12.458], [41.889, 12.4977], [41.9085, 12.4612], [41.9062, 12.4631], [41.9137, 12.4413], [41.898, 12.4719], [41.8995, 12.4542], [41.8914, 12.4686], [41.9004, 12.4665], [41.8961, 12.4779], [41.8781, 12.5073], [41.9172, 12.501], [41.8859, 12.4725], [41.8996, 12.4988], [41.8998, 12.5012], [41.9, 12.5011], [41.8956, 12.5001], [41.907, 12.4608], [41.8983, 12.5144], [41.9126, 12.4757], [41.911, 12.4665], [41.9152, 12.4748], [41.8963, 12.4941], [41.883, 12.5143], [41.9018, 12.4855], [41.8962, 12.4729], [41.9107, 12.503], [41.8743, 12.4498], [41.8814, 12.5134], [41.9065, 12.4804], [41.8919, 12.5088], [41.8805, 12.506], [41.9083, 12.4678], [41.9122, 12.4756], [41.9069, 12.5006], [41.9101, 12.502], [41.8957, 12.4931], [41.9264, 12.5156], [41.8784, 12.4781], [41.9124, 12.5013], [41.9101, 12.4966], [41.8821, 12.4766], [41.8919, 12.4686], [41.8723, 12.4786], [41.8719, 12.4793], [41.8715, 12.4797], [41.877, 12.468], [41.8803, 12.4689], [41.913, 12.5071], [41.8989, 12.5155], [41.9046, 12.5049], [41.8975, 12.4791], [41.9056, 12.4537], [41.9048, 12.4458], [41.9256, 12.4872], [41.91, 12.5015], [41.9021, 12.4623], [41.8839, 12.5089], [41.9087, 12.4882], [41.913, 12.4975], [41.9038, 12.494], [41.9172, 12.4983], [41.8982, 12.5172], [41.8947, 12.4917], [41.8818, 12.4767], [41.9074, 12.4541], [41.9085, 12.4987], [41.8721, 12.4709], [41.8799, 12.4768], [41.892, 12.4685], [41.9051, 12.4775], [41.8738, 12.4807], [41.9005, 12.4756], [41.896, 12.4722], [41.8946, 12.5019], [41.8974, 12.4682], [41.8821, 12.5089], [41.8804, 12.4777], [41.8958, 12.514], [41.8857, 12.51], [41.893, 12.4776], [41.8921, 12.502], [41.892, 12.5018], [41.875, 12.4579], [41.9262, 12.4638], [41.8827, 12.4566], [41.8764, 12.4672], [41.8808, 12.5028], [41.9109, 12.5012], [41.8794, 12.4784], [41.88, 12.4618], [41.8721, 12.4799], [41.8827, 12.4865], [41.9023, 12.4941], [41.9023, 12.4939], [41.9017, 12.5035], [41.9053, 12.4998], [41.9038, 12.5033], [41.9039, 12.5005], [41.9046, 12.5007], [41.8898, 12.495], [41.8954, 12.4727], [41.9085, 12.4893], [41.9098, 12.4911], [41.9097, 12.4968], [41.906, 12.4958], [41.8728, 12.4845], [41.893, 12.5012], [41.8724, 12.5123], [41.9007, 12.5022], [41.8994, 12.4919], [41.8986, 12.501], [41.8952, 12.4905], [41.9086, 12.4625], [41.9119, 12.4564], [41.9128, 12.4756], [41.9105, 12.5003], [41.911, 12.5011], [41.8999, 12.453], [41.9066, 12.5168], [41.9067, 12.5163], [41.9079, 12.5167], [41.8771, 12.5162], [41.9117, 12.4989], [41.8997, 12.484], [41.9037, 12.4878], [41.8791, 12.5035], [41.9038, 12.4814], [41.8939, 12.4882], [41.909, 12.4498], [41.908, 12.4541], [41.8807, 12.5134], [41.9014, 12.5017], [41.8944, 12.4737], [41.8776, 12.4736], [41.8828, 12.5147], [41.8778, 12.4739], [41.8739, 12.4801], [41.9111, 12.5166], [41.8779, 12.5053], [41.871, 12.5157], [41.8777, 12.5085], [41.8764, 12.5093], [41.8981, 12.5153], [41.9099, 12.4522], [41.8976, 12.4568], [41.8886, 12.471], [41.9018, 12.4751], [41.9031, 12.4832], [41.8741, 12.4478], [41.8846, 12.4607], [41.9214, 12.5035], [41.8987, 12.4773], [41.8988, 12.4773], [41.914, 12.4748]]
14+
15+
m = folium.Map([41.9, 12.5], zoom_start=12)
16+
17+
HeatMap(pizzeria_coords).add_to(m)
18+
19+
m
20+
```
21+
22+
One can also set a weight for each coordinate by passing the data as a list of
23+
`[latitude, longitude, weight]` triples. Below is an example for this case using random data.
24+
See the API reference for more options.
25+
26+
```{code-cell} ipython3
27+
import numpy as np
28+
29+
# Generate some random data
30+
data = np.random.normal(size=(100, 3)) + np.array([[48, 5, 1]])
31+
1532
m = folium.Map([48.0, 5.0], zoom_start=6)
1633

1734
HeatMap(data).add_to(m)

dev/_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const DOCUMENTATION_OPTIONS = {
2-
VERSION: '1.0.0rc2.dev30+g3922b3105',
2+
VERSION: '1.0.0rc2.dev31+g8efb90108',
33
LANGUAGE: 'en',
44
COLLAPSE_INDEX: false,
55
BUILDER: 'html',

dev/advanced_guide.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta charset="utf-8" />
99
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
1010

11-
<title>Advanced guide &#8212; Folium 1.0.0rc2.dev30+g3922b3105 documentation</title>
11+
<title>Advanced guide &#8212; Folium 1.0.0rc2.dev31+g8efb90108 documentation</title>
1212

1313

1414

@@ -39,7 +39,7 @@
3939
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=cb8930eaaf36d9849b67" />
4040
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=cb8930eaaf36d9849b67" />
4141

42-
<script src="_static/documentation_options.js?v=e02cbb1f"></script>
42+
<script src="_static/documentation_options.js?v=b98ba26b"></script>
4343
<script src="_static/doctools.js?v=fd6eb6e6"></script>
4444
<script src="_static/sphinx_highlight.js?v=6ffebe34"></script>
4545
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
@@ -58,7 +58,7 @@
5858
<link rel="prev" title="TimestampedWmsTileLayers" href="user_guide/plugins/WmsTimeDimension.html" />
5959
<meta name="viewport" content="width=device-width, initial-scale=1"/>
6060
<meta name="docsearch:language" content="en"/>
61-
<meta name="docsearch:version" content="1.0.0rc2.dev30+g3922b3105" />
61+
<meta name="docsearch:version" content="1.0.0rc2.dev31+g8efb90108" />
6262

6363

6464
<script src="_static/searchtools.js"></script>
@@ -548,7 +548,7 @@ <h1>Advanced guide<a class="headerlink" href="#advanced-guide" title="Link to th
548548
<div class="footer-items__start">
549549

550550
<div class="footer-item"><!-- This will display the version of the docs -->
551-
Folium version 1.0.0rc2.dev30+g3922b3105</div>
551+
Folium version 1.0.0rc2.dev31+g8efb90108</div>
552552

553553
<div class="footer-item">
554554

dev/advanced_guide/choropleth with Jenks natural breaks optimization.html

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

dev/advanced_guide/choropleth with Jenks natural breaks optimization.ipynb

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

dev/advanced_guide/colormaps.html

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

dev/advanced_guide/colormaps.ipynb

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

dev/advanced_guide/custom_panes.html

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

0 commit comments

Comments
 (0)