Skip to content

Commit

Permalink
deploy: bceb508
Browse files Browse the repository at this point in the history
  • Loading branch information
Conengmo committed Dec 10, 2024
1 parent 86d5177 commit da12b13
Show file tree
Hide file tree
Showing 159 changed files with 32,143 additions and 15,225 deletions.
2 changes: 1 addition & 1 deletion latest/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 142ab798bc511ee3a3193ada5a679351
config: 13174057a27b971bffec284bf2dd0b38
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified latest/_images/user_guide_plugins_timeslider_choropleth_12_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified latest/_images/user_guide_plugins_timeslider_choropleth_2_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions latest/_sources/user_guide/plugins.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Plugins
plugins/mini_map
plugins/measure_control
plugins/mouse_position
plugins/overlapping_marker_spiderfier
plugins/pattern
plugins/polygon_encoded
plugins/polyline_encoded
Expand Down Expand Up @@ -80,6 +81,8 @@ Plugins
- A small minimap showing the map at a different scale to aid navigation.
* - :doc:`Mouse Position <plugins/mouse_position>`
- A control that displays geographic coordinates of the mouse pointer, as it is moved over the map.
* - :doc:`Overlapping Marker Spiderifier <plugins/overlapping_marker_spiderfier>`
- Help manage overlapping markers by “spiderfying” them when clicked, making it easier to select individual markers.
* - :doc:`Pattern <plugins/pattern>`
- Add support for pattern fills on Paths.
* - :doc:`Polygon Encoded <plugins/polygon_encoded>`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# OverlappingMarkerSpiderfier

The `OverlappingMarkerSpiderfier` is a plugin for Folium that helps manage overlapping markers by "spiderfying" them when clicked, making it easier to select individual markers.

## Using with Markers

```{code-cell} ipython3
import folium
from folium.plugins import OverlappingMarkerSpiderfier

# Create a map
m = folium.Map(location=[45.05, 3.05], zoom_start=13)

# Add markers to the map
for i in range(20):
folium.Marker(
location=[45.05 + i * 0.0001, 3.05 + i * 0.0001],
popup=f"Marker {i}"
).add_to(m)

# Add the OverlappingMarkerSpiderfier plugin
oms = OverlappingMarkerSpiderfier(
keep_spiderfied=True, # Markers remain spiderfied after clicking
nearby_distance=20, # Distance for clustering markers in pixel
circle_spiral_switchover=10, # Threshold for switching between circle and spiral
leg_weight=2.0 # Line thickness for spider legs
)
oms.add_to(m)

m
```

## Using with FeatureGroups

```{code-cell} ipython3
import folium
from folium.plugins import OverlappingMarkerSpiderfier

# Create a map
m = folium.Map(location=[45.05, 3.05], zoom_start=13)

# Create a FeatureGroup
feature_group = folium.FeatureGroup(name='Feature Group')

# Add markers to the FeatureGroup
for i in range(10):
folium.Marker(
location=[45.05 + i * 0.0001, 3.05 + i * 0.0001],
popup=f"Feature Group Marker {i}"
).add_to(feature_group)

# Add the FeatureGroup to the map
feature_group.add_to(m)

# Initialize OverlappingMarkerSpiderfier
oms = OverlappingMarkerSpiderfier()
oms.add_to(m)

m
```

## Using with FeatureGroupSubGroups

```{code-cell} ipython3
import folium
from folium.plugins import OverlappingMarkerSpiderfier, FeatureGroupSubGroup

# Create a map
m = folium.Map(location=[45.05, 3.05], zoom_start=13)

# Create a main FeatureGroup
main_group = folium.FeatureGroup(name='Main Group')

# Create sub-groups
sub_group1 = FeatureGroupSubGroup(main_group, name='Sub Group 1')
sub_group2 = FeatureGroupSubGroup(main_group, name='Sub Group 2')

# Add markers to the first sub-group
for i in range(10):
folium.Marker(
location=[45.05 + i * 0.0001, 3.05 + i * 0.0001],
popup=f"Sub Group 1 Marker {i}"
).add_to(sub_group1)

# Add markers to the second sub-group
for i in range(10, 20):
folium.Marker(
location=[45.06 + (i - 10) * 0.0001, 3.06 + (i - 10) * 0.0001],
popup=f"Sub Group 2 Marker {i}"
).add_to(sub_group2)

# Add the main group to the map
main_group.add_to(m)

# Add sub-groups to the map
sub_group1.add_to(m)
sub_group2.add_to(m)

# Initialize OverlappingMarkerSpiderfier
oms = OverlappingMarkerSpiderfier()
oms.add_to(m)

# Add the LayerControl plugin
folium.LayerControl().add_to(m)

m
```
2 changes: 1 addition & 1 deletion latest/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const DOCUMENTATION_OPTIONS = {
VERSION: '0.18.0',
VERSION: '0.19.0',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
34 changes: 19 additions & 15 deletions latest/_static/switcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,60 +4,64 @@
"url": "https://python-visualization.github.io/folium/dev/"
},
{
"name": "latest (v0.17.0)",
"version": "latest",
"name": "latest (0.18.0)",
"version": "0.18.0",
"url": "https://python-visualization.github.io/folium/latest/"
},
{
"version": "v0.16.0",
"version": "0.17.0",
"url": "https://python-visualization.github.io/folium/v0.17.0/"
},
{
"version": "0.16.0",
"url": "https://python-visualization.github.io/folium/v0.16.0/"
},
{
"version": "v0.15.1",
"version": "0.15.1",
"url": "https://python-visualization.github.io/folium/v0.15.1/"
},
{
"version": "v0.14.0",
"version": "0.14.0",
"url": "https://python-visualization.github.io/folium/version-v0.14.0/"
},
{
"version": "v0.12.1",
"version": "0.12.1",
"url": "https://python-visualization.github.io/folium/version-v0.12.1/"
},
{
"version": "v0.12.0",
"version": "0.12.0",
"url": "https://python-visualization.github.io/folium/version-v0.12.0/"
},
{
"version": "v0.11.0",
"version": "0.11.0",
"url": "https://python-visualization.github.io/folium/version-v0.11.0/"
},
{
"version": "v0.10.1",
"version": "0.10.1",
"url": "https://python-visualization.github.io/folium/version-v0.10.1/"
},
{
"version": "v0.10.0",
"version": "0.10.0",
"url": "https://python-visualization.github.io/folium/version-v0.10.0/"
},
{
"version": "v0.9.1",
"version": "0.9.1",
"url": "https://python-visualization.github.io/folium/version-v0.9.1/"
},
{
"version": "v0.9.0",
"version": "0.9.0",
"url": "https://python-visualization.github.io/folium/version-v0.9.0/"
},
{
"version": "v0.8.3",
"version": "0.8.3",
"url": "https://python-visualization.github.io/folium/version-v0.8.3/"
},
{
"version": "v0.8.2",
"version": "0.8.2",
"url": "https://python-visualization.github.io/folium/version-v0.8.2/"
},
{
"version": "v0.8.1",
"version": "0.8.1",
"url": "https://python-visualization.github.io/folium/version-v0.8.1/"
}
]
10 changes: 5 additions & 5 deletions latest/advanced_guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<title>Advanced guide &#8212; Folium 0.18.0 documentation</title>
<title>Advanced guide &#8212; Folium 0.19.0 documentation</title>



Expand Down Expand Up @@ -39,7 +39,7 @@
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=26a4bc78f4c0ddb94549" />
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=26a4bc78f4c0ddb94549" />

<script src="_static/documentation_options.js?v=ba2e7b09"></script>
<script src="_static/documentation_options.js?v=cbfb3150"></script>
<script src="_static/doctools.js?v=9bcbadda"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<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>
Expand All @@ -49,7 +49,7 @@
<script>
DOCUMENTATION_OPTIONS.theme_version = '0.16.0';
DOCUMENTATION_OPTIONS.theme_switcher_json_url = 'https://python-visualization.github.io/folium/dev/_static/switcher.json';
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '0.18.0';
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '0.19.0';
DOCUMENTATION_OPTIONS.show_version_warning_banner = false;
</script>
<link rel="index" title="Index" href="genindex.html" />
Expand All @@ -58,7 +58,7 @@
<link rel="prev" title="TimestampedWmsTileLayers" href="user_guide/plugins/WmsTimeDimension.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
<meta name="docsearch:version" content="0.18.0" />
<meta name="docsearch:version" content="0.19.0" />
</head>


Expand Down Expand Up @@ -515,7 +515,7 @@ <h1>Advanced guide<a class="headerlink" href="#advanced-guide" title="Link to th
<div class="footer-items__start">

<div class="footer-item"><!-- This will display the version of the docs -->
Folium version 0.18.0</div>
Folium version 0.19.0</div>

<div class="footer-item">

Expand Down
Loading

0 comments on commit da12b13

Please sign in to comment.