Skip to content

Upgrade Leaflet 1.5.1 -> 1.6.0 #1241

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

Merged
merged 1 commit into from
Jan 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions folium/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ class GeoJsonTooltip(GeoJsonDetail):
Whether the tooltip should follow the mouse.
**kwargs: Assorted.
These values will map directly to the Leaflet Options. More info
available here: https://leafletjs.com/reference-1.5.1#tooltip
available here: https://leafletjs.com/reference-1.6.0#tooltip

Examples
--------
Expand Down Expand Up @@ -1287,7 +1287,7 @@ class DivIcon(MacroElement):
html : string
A custom HTML code to put inside the div element.

See https://leafletjs.com/reference-1.5.1.html#divicon
See https://leafletjs.com/reference-1.6.0.html#divicon

"""

Expand Down
6 changes: 3 additions & 3 deletions folium/folium.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

_default_js = [
('leaflet',
'https://cdn.jsdelivr.net/npm/leaflet@1.5.1/dist/leaflet.js'),
'https://cdn.jsdelivr.net/npm/leaflet@1.6.0/dist/leaflet.js'),
('jquery',
'https://code.jquery.com/jquery-1.12.4.min.js'),
('bootstrap',
Expand All @@ -37,7 +37,7 @@

_default_css = [
('leaflet_css',
'https://cdn.jsdelivr.net/npm/leaflet@1.5.1/dist/leaflet.css'),
'https://cdn.jsdelivr.net/npm/leaflet@1.6.0/dist/leaflet.css'),
('bootstrap_css',
'https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'),
('bootstrap_theme_css',
Expand Down Expand Up @@ -137,7 +137,7 @@ class Map(MacroElement):
Display zoom controls on the map.
**kwargs
Additional keyword arguments are passed to Leaflets Map class:
https://leafletjs.com/reference-1.5.1.html#map
https://leafletjs.com/reference-1.6.0.html#map

Returns
-------
Expand Down
8 changes: 4 additions & 4 deletions folium/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class FeatureGroup(Layer):
Whether the layer will be shown on opening (only for overlays).
**kwargs
Additional (possibly inherited) options. See
https://leafletjs.com/reference-1.5.1.html#featuregroup
https://leafletjs.com/reference-1.6.0.html#featuregroup

"""
_template = Template(u"""
Expand Down Expand Up @@ -102,7 +102,7 @@ class LayerControl(MacroElement):
its layers so that the order is preserved when switching them on/off.
**kwargs
Additional (possibly inherited) options. See
https://leafletjs.com/reference-1.5.1.html#control-layers
https://leafletjs.com/reference-1.6.0.html#control-layers

"""
_template = Template("""
Expand Down Expand Up @@ -386,7 +386,7 @@ class Tooltip(MacroElement):
Whether the tooltip should follow the mouse.
**kwargs
These values will map directly to the Leaflet Options. More info
available here: https://leafletjs.com/reference-1.5.1#tooltip
available here: https://leafletjs.com/reference-1.6.0#tooltip

"""
_template = Template(u"""
Expand Down Expand Up @@ -500,7 +500,7 @@ class CustomPane(MacroElement):
determine which map elements lie over/under it. The default
(625) corresponds to between markers and tooltips. Default
panes and z-indexes can be found at
https://leafletjs.com/reference-1.5.1.html#map-pane
https://leafletjs.com/reference-1.6.0.html#map-pane
pointer_events: bool, default False
Whether or not layers in the pane should interact with the
cursor. Setting to False will prevent interfering with
Expand Down
2 changes: 1 addition & 1 deletion folium/plugins/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Draw(MacroElement):
Name of geojson file
position : {'topleft', 'toprigth', 'bottomleft', 'bottomright'}
Position of control.
See https://leafletjs.com/reference-1.5.1.html#control
See https://leafletjs.com/reference-1.6.0.html#control
draw_options : dict, optional
The options used to configure the draw toolbar. See
http://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html#drawoptions
Expand Down
6 changes: 3 additions & 3 deletions folium/raster_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class WmsTileLayer(Layer):
for setting extra tileLayer.wms parameters or as extra parameters in
the WMS request.

See https://leafletjs.com/reference-1.5.1.html#tilelayer-wms
See https://leafletjs.com/reference-1.6.0.html#tilelayer-wms
"""
_template = Template(u"""
{% macro script(this, kwargs) %}
Expand Down Expand Up @@ -224,7 +224,7 @@ class ImageOverlay(Layer):
show: bool, default True
Whether the layer will be shown on opening (only for overlays).

See https://leafletjs.com/reference-1.5.1.html#imageoverlay for more
See https://leafletjs.com/reference-1.6.0.html#imageoverlay for more
options.

"""
Expand Down Expand Up @@ -310,7 +310,7 @@ class VideoOverlay(Layer):
Whether the layer will be shown on opening (only for overlays).
**kwargs:
Other valid (possibly inherited) options. See:
https://leafletjs.com/reference-1.5.1.html#videooverlay
https://leafletjs.com/reference-1.6.0.html#videooverlay

"""
_template = Template(u"""
Expand Down
12 changes: 6 additions & 6 deletions folium/vector_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def path_options(line=False, radius=False, **kwargs):

Note that the presence of `fill_color` will override `fill=False`.

See https://leafletjs.com/reference-1.5.1.html#path
See https://leafletjs.com/reference-1.6.0.html#path

"""

Expand Down Expand Up @@ -142,7 +142,7 @@ class PolyLine(BaseMultiLocation):
Disable polyline clipping.
**kwargs
Other valid (possibly inherited) options. See:
https://leafletjs.com/reference-1.5.1.html#polyline
https://leafletjs.com/reference-1.6.0.html#polyline

"""

Expand Down Expand Up @@ -176,7 +176,7 @@ class Polygon(BaseMultiLocation):
Display a text when hovering over the object.
**kwargs
Other valid (possibly inherited) options. See:
https://leafletjs.com/reference-1.5.1.html#polygon
https://leafletjs.com/reference-1.6.0.html#polygon

"""

Expand Down Expand Up @@ -210,7 +210,7 @@ class Rectangle(BaseMultiLocation):
Display a text when hovering over the object.
**kwargs
Other valid (possibly inherited) options. See:
https://leafletjs.com/reference-1.5.1.html#rectangle
https://leafletjs.com/reference-1.6.0.html#rectangle

"""

Expand Down Expand Up @@ -250,7 +250,7 @@ class Circle(Marker):
Radius of the circle, in meters.
**kwargs
Other valid (possibly inherited) options. See:
https://leafletjs.com/reference-1.5.1.html#circle
https://leafletjs.com/reference-1.6.0.html#circle

"""

Expand Down Expand Up @@ -287,7 +287,7 @@ class CircleMarker(Marker):
Radius of the circle marker, in pixels.
**kwargs
Other valid (possibly inherited) options. See:
https://leafletjs.com/reference-1.5.1.html#circlemarker
https://leafletjs.com/reference-1.6.0.html#circlemarker

"""

Expand Down