diff --git a/docs/advanced_guide/custom_panes.md b/docs/advanced_guide/custom_panes.md index cece381d0c..b277d461b2 100644 --- a/docs/advanced_guide/custom_panes.md +++ b/docs/advanced_guide/custom_panes.md @@ -10,7 +10,7 @@ import folium Panes are used to control the ordering of layers on the map. You can customise them using the `CustomPane` class. -For more info on the panes Leaflet has, see https://leafletjs.com/reference.html#map-pane. +For more info on the panes Leaflet has, see https://leafletjs.com/reference-1.9.4.html#map-pane. First we'll load geojson data to use in the examples: diff --git a/docs/advanced_guide/override_leaflet_class_methods.md b/docs/advanced_guide/override_leaflet_class_methods.md index 30ec3adb26..d3bf565346 100644 --- a/docs/advanced_guide/override_leaflet_class_methods.md +++ b/docs/advanced_guide/override_leaflet_class_methods.md @@ -10,7 +10,7 @@ import folium ## Customizing Leaflet behavior Sometimes you want to override Leaflet's javascript behavior. This can be done using the `Class.include` statement. This mimics Leaflet's `L.Class.include` method. See -[here](https://leafletjs.com/examples/extending/extending-1-classes.html) +[here](https://leafletjs.com/examples/extending-1-classes/) for more details. ### Example: adding an authentication header to a TileLayer diff --git a/docs/user_guide/geojson/geojson.md b/docs/user_guide/geojson/geojson.md index 7a8c0d78c1..2ac594fc75 100644 --- a/docs/user_guide/geojson/geojson.md +++ b/docs/user_guide/geojson/geojson.md @@ -107,8 +107,8 @@ You can provide a function of the form `lambda feature: {}` that sets the style For possible options, see: -* For `Point` and `MultiPoint`, see https://leafletjs.com/reference.html#marker -* For other features, see https://leafletjs.com/reference.html#path and https://leafletjs.com/reference.html#polyline +* For `Point` and `MultiPoint`, see https://leafletjs.com/reference-1.9.4.html#marker +* For other features, see https://leafletjs.com/reference-1.9.4.html#path and https://leafletjs.com/reference-1.9.4.html#polyline ```{code-cell} ipython3 m = folium.Map([43, -100], zoom_start=4) diff --git a/docs/user_guide/raster_layers/tiles.md b/docs/user_guide/raster_layers/tiles.md index 5a1de3ede5..3f85ac938e 100644 --- a/docs/user_guide/raster_layers/tiles.md +++ b/docs/user_guide/raster_layers/tiles.md @@ -29,7 +29,7 @@ folium.Map(location=[lat, lon], tiles="Cartodb dark_matter", zoom_start=zoom_sta You can also provide a url template to load tiles from, for example if you use a paid API. You also have to provide an attribution in that case. For information how that url template should look like see the Leaflet documentation: -https://leafletjs.com/reference.html#tilelayer. +https://leafletjs.com/reference-1.9.4.html#tilelayer. Below is an example, note the literal `{z}`, `{x}` and `{y}` in the url template. diff --git a/folium/features.py b/folium/features.py index 587f5e053b..8f0b1e9be0 100644 --- a/folium/features.py +++ b/folium/features.py @@ -1280,7 +1280,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.html#tooltip + available here: https://leafletjs.com/reference-1.9.4.html#tooltip Examples -------- @@ -1736,7 +1736,7 @@ class DivIcon(MacroElement): html : string A custom HTML code to put inside the div element. - See https://leafletjs.com/reference.html#divicon + See https://leafletjs.com/reference-1.9.4.html#divicon """ diff --git a/folium/folium.py b/folium/folium.py index c22b83fbd5..f2ad4961bc 100644 --- a/folium/folium.py +++ b/folium/folium.py @@ -166,7 +166,7 @@ class Map(JSCSSMixin, Evented): string ending in 'rem', 'em', or 'px'. **kwargs Additional keyword arguments are passed to Leaflets Map class: - https://leafletjs.com/reference.html#map + https://leafletjs.com/reference-1.9.4.html#map Returns ------- diff --git a/folium/map.py b/folium/map.py index daf7ee84cb..da5a0464f1 100644 --- a/folium/map.py +++ b/folium/map.py @@ -80,7 +80,7 @@ class Evented(Class): Adds the `on` and `once` methods for event handling capabilities. - See https://leafletjs.com/reference.html#evented for + See https://leafletjs.com/reference-1.9.4.html#evented for more in depth documentation. Please note that we have only added the `on( eventMap)` variant of this method using python keyword arguments. @@ -160,7 +160,7 @@ class FeatureGroup(Layer): Whether the layer will be shown on opening. **kwargs Additional (possibly inherited) options. See - https://leafletjs.com/reference.html#featuregroup + https://leafletjs.com/reference-1.9.4.html#featuregroup """ @@ -211,7 +211,7 @@ class LayerGroup(Layer): Whether the layer will be shown on opening. **kwargs Additional (possibly inherited) options. See - https://leafletjs.com/reference.html#layergroup + https://leafletjs.com/reference-1.9.4.html#layergroup """ @@ -266,7 +266,7 @@ class LayerControl(MacroElement): to True to allow dragging the control around. **kwargs Additional (possibly inherited) options. See - https://leafletjs.com/reference.html#control-layers + https://leafletjs.com/reference-1.9.4.html#control-layers """ @@ -703,7 +703,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.html#tooltip + available here: https://leafletjs.com/reference-1.9.4.html#tooltip """ @@ -856,7 +856,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.html#map-pane + https://leafletjs.com/reference-1.9.4.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 diff --git a/folium/plugins/draw.py b/folium/plugins/draw.py index 648d553e77..62bc95a589 100644 --- a/folium/plugins/draw.py +++ b/folium/plugins/draw.py @@ -38,7 +38,7 @@ class Draw(JSCSSMixin, MacroElement): Name of geojson file position : {'topleft', 'toprigth', 'bottomleft', 'bottomright'} Position of control. - See https://leafletjs.com/reference.html#control + See https://leafletjs.com/reference-1.9.4.html#control export_position : {'topright', 'topleft', 'bottomright', 'bottomleft'} Corner of the map to place the export button in, when ``export`` is True. Defaults to 'topright'. Use this to keep the button clear diff --git a/folium/plugins/encoded.py b/folium/plugins/encoded.py index 86faa950d4..8fd2b27c99 100644 --- a/folium/plugins/encoded.py +++ b/folium/plugins/encoded.py @@ -60,7 +60,7 @@ class PolyLineFromEncoded(_BaseFromEncoded): https://developers.google.com/maps/documentation/utilities/polylinealgorithm **kwargs: Polyline options as accepted by leaflet. See: - https://leafletjs.com/reference.html#polyline + https://leafletjs.com/reference-1.9.4.html#polyline Adapted from https://github.com/jieter/Leaflet.encoded @@ -94,7 +94,7 @@ class PolygonFromEncoded(_BaseFromEncoded): https://developers.google.com/maps/documentation/utilities/polylinealgorithm **kwargs: Polygon options as accepted by leaflet. See: - https://leafletjs.com/reference.html#polygon + https://leafletjs.com/reference-1.9.4.html#polygon Adapted from https://github.com/jieter/Leaflet.encoded diff --git a/folium/plugins/groupedlayercontrol.py b/folium/plugins/groupedlayercontrol.py index c30400932d..2495a6ebd0 100644 --- a/folium/plugins/groupedlayercontrol.py +++ b/folium/plugins/groupedlayercontrol.py @@ -25,7 +25,7 @@ class GroupedLayerControl(JSCSSMixin, MacroElement): If you want to use both, use two separate instances of this class. **kwargs Additional (possibly inherited) options. See - https://leafletjs.com/reference.html#control-layers + https://leafletjs.com/reference-1.9.4.html#control-layers """ default_js = [ diff --git a/folium/plugins/treelayercontrol.py b/folium/plugins/treelayercontrol.py index a2e225a49e..7934bbafec 100644 --- a/folium/plugins/treelayercontrol.py +++ b/folium/plugins/treelayercontrol.py @@ -74,7 +74,7 @@ class TreeLayerControl(JSCSSMixin, MacroElement): on to toggle the layer. **kwargs Additional (possibly inherited) options. See - https://leafletjs.com/reference.html#control-layers + https://leafletjs.com/reference-1.9.4.html#control-layers Examples -------- diff --git a/folium/raster_layers.py b/folium/raster_layers.py index 8bef5e9673..cfb02a3581 100644 --- a/folium/raster_layers.py +++ b/folium/raster_layers.py @@ -187,7 +187,7 @@ class WmsTileLayer(Layer): for setting extra tileLayer.wms parameters or as extra parameters in the WMS request. - See https://leafletjs.com/reference.html#tilelayer-wms + See https://leafletjs.com/reference-1.9.4.html#tilelayer-wms """ _template = Template(""" @@ -276,7 +276,7 @@ class ImageOverlay(Layer): show: bool, default True Whether the layer will be shown on opening. - See https://leafletjs.com/reference.html#imageoverlay for more + See https://leafletjs.com/reference-1.9.4.html#imageoverlay for more options. """ @@ -365,7 +365,7 @@ class VideoOverlay(Layer): Whether the layer will be shown on opening. **kwargs: Other valid (possibly inherited) options. See: - https://leafletjs.com/reference.html#videooverlay + https://leafletjs.com/reference-1.9.4.html#videooverlay """ diff --git a/folium/vector_layers.py b/folium/vector_layers.py index 7a822c57fb..35faa9e466 100644 --- a/folium/vector_layers.py +++ b/folium/vector_layers.py @@ -74,7 +74,7 @@ def path_options( This function accepts both snake_case and lowerCamelCase equivalents. - See https://leafletjs.com/reference.html#path + See https://leafletjs.com/reference-1.9.4.html#path """ @@ -180,7 +180,7 @@ class PolyLine(BaseMultiLocation): Disable polyline clipping. **kwargs Other valid (possibly inherited) options. See: - https://leafletjs.com/reference.html#polyline + https://leafletjs.com/reference-1.9.4.html#polyline """ @@ -217,7 +217,7 @@ class Polygon(BaseMultiLocation): Display a text when hovering over the object. **kwargs Other valid (possibly inherited) options. See: - https://leafletjs.com/reference.html#polygon + https://leafletjs.com/reference-1.9.4.html#polygon """ @@ -257,7 +257,7 @@ class Rectangle(MacroElement): Display a text when hovering over the object. **kwargs Other valid (possibly inherited) options. See: - https://leafletjs.com/reference.html#rectangle + https://leafletjs.com/reference-1.9.4.html#rectangle """ @@ -315,7 +315,7 @@ class Circle(Marker): Radius of the circle, in meters. **kwargs Other valid (possibly inherited) options. See: - https://leafletjs.com/reference.html#circle + https://leafletjs.com/reference-1.9.4.html#circle """ @@ -359,7 +359,7 @@ class CircleMarker(Marker): Radius of the circle marker, in pixels. **kwargs Other valid (possibly inherited) options. See: - https://leafletjs.com/reference.html#circlemarker + https://leafletjs.com/reference-1.9.4.html#circlemarker """