From 3ef40373a20cdf917a43b115e318f4df0e91f53e Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Thu, 5 Aug 2021 22:06:23 -0400 Subject: [PATCH] Fixed typos --- CHANGES.txt | 2 +- examples/Colormaps.ipynb | 4 ++-- examples/ContinuousWorld.ipynb | 2 +- examples/GeoJSON_and_choropleth.ipynb | 2 +- examples/Geopandas_and_geo_interface.ipynb | 2 +- examples/HeatMapWithTime.ipynb | 2 +- examples/ImageOverlay.ipynb | 6 +++--- examples/MiniMap.ipynb | 2 +- examples/Plugins.ipynb | 4 ++-- examples/Popups.ipynb | 2 +- examples/plugin-DualMap.ipynb | 2 +- folium/features.py | 6 +++--- folium/plugins/fullscreen.py | 2 +- folium/plugins/polyline_offset.py | 2 +- 14 files changed, 20 insertions(+), 20 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 8f224eda3f..3a9b5e0fe0 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -244,7 +244,7 @@ Bug Fixes API changes - Removed features `MarkerCluster` in lieu of the plugin version (ocefpaf #704) -- `choropleth` now takes a single `geo_data` instad of `geo_path`/`geo_str` +- `choropleth` now takes a single `geo_data` instead of `geo_path`/`geo_str` leaving the parsing to `GeoJSON`, remove the unused `data_out` option, add geopandas support (ocefpaf #702) - All popups are considered HTML text by default (ocefpaf #689) diff --git a/examples/Colormaps.ipynb b/examples/Colormaps.ipynb index 216433fc29..7b1205ad17 100644 --- a/examples/Colormaps.ipynb +++ b/examples/Colormaps.ipynb @@ -174,7 +174,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "If you specify no index, colors will be set uniformely." + "If you specify no index, colors will be set uniformly." ] }, { @@ -398,7 +398,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Build-in\n", + "## Built-in\n", "\n", "For convenience, we provide a (small) set of built-in linear colormaps, in `folium.colormap.linear`." ] diff --git a/examples/ContinuousWorld.ipynb b/examples/ContinuousWorld.ipynb index 12de410651..d2554d85b1 100644 --- a/examples/ContinuousWorld.ipynb +++ b/examples/ContinuousWorld.ipynb @@ -33,7 +33,7 @@ "m = folium.Map(world_copy_jump=False, no_wrap=False)\n", "\n", "folium.Marker(\n", - " location=[0, 0], popup=\"I will disapear when moved outside the wrapped map domain.\"\n", + " location=[0, 0], popup=\"I will disappear when moved outside the wrapped map domain.\"\n", ").add_to(m)\n", "\n", "m" diff --git a/examples/GeoJSON_and_choropleth.ipynb b/examples/GeoJSON_and_choropleth.ipynb index 138649fdb4..384176e86f 100644 --- a/examples/GeoJSON_and_choropleth.ipynb +++ b/examples/GeoJSON_and_choropleth.ipynb @@ -456,7 +456,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "We need also to convert the table into a dictionnary, in order to map a feature to it's unemployment value." + "We need also to convert the table into a dictionary, in order to map a feature to it's unemployment value." ] }, { diff --git a/examples/Geopandas_and_geo_interface.ipynb b/examples/Geopandas_and_geo_interface.ipynb index 77886281fe..883b083910 100644 --- a/examples/Geopandas_and_geo_interface.ipynb +++ b/examples/Geopandas_and_geo_interface.ipynb @@ -175,7 +175,7 @@ "source": [ "Quite easy.\n", "\n", - "Well, you can also take advantage of your `GeoDataFrame` structure to set the style of the data. For this, just create a column `style` containing each feature's style in a dictionnary." + "Well, you can also take advantage of your `GeoDataFrame` structure to set the style of the data. For this, just create a column `style` containing each feature's style in a dictionary." ] }, { diff --git a/examples/HeatMapWithTime.ipynb b/examples/HeatMapWithTime.ipynb index d55e0a54a5..56be95541f 100644 --- a/examples/HeatMapWithTime.ipynb +++ b/examples/HeatMapWithTime.ipynb @@ -13,7 +13,7 @@ "source": [ "In this example we show the most basic usage of the HeatMapWithTime plugin.\n", "\n", - "We generate a random set of points with lat/lon coordinates to draw on the map, and then move these points slowly in a random direction to simulate a time dimension. The points are aranged into a list of sets of data to draw." + "We generate a random set of points with lat/lon coordinates to draw on the map, and then move these points slowly in a random direction to simulate a time dimension. The points are arranged into a list of sets of data to draw." ] }, { diff --git a/examples/ImageOverlay.ipynb b/examples/ImageOverlay.ipynb index a00b4a8c16..5b85021e02 100644 --- a/examples/ImageOverlay.ipynb +++ b/examples/ImageOverlay.ipynb @@ -119,7 +119,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "This works exactly the same way if you want to put a JPG intead of a PNG." + "This works exactly the same way if you want to put a JPG instead of a PNG." ] }, { @@ -136,7 +136,7 @@ "Now you may wish to create your own image, based on another python computation.\n", "For this, you'll need to have numpy installed on your machine.\n", "\n", - "Let's creater an image to draw a rectangle in the bounds `[[0, -60], [60, 60]]`." + "Let's create an image to draw a rectangle in the bounds `[[0, -60], [60, 60]]`." ] }, { @@ -290,7 +290,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "This time, the lines are properly positionned (at the precision of the array)." + "This time, the lines are properly positioned (at the precision of the array)." ] } ], diff --git a/examples/MiniMap.ipynb b/examples/MiniMap.ipynb index c594c76334..25ef870f2b 100644 --- a/examples/MiniMap.ipynb +++ b/examples/MiniMap.ipynb @@ -42,7 +42,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "### Make the minimap collapsable" + "### Make the minimap collapsible" ] }, { diff --git a/examples/Plugins.ipynb b/examples/Plugins.ipynb index e92c2bf1c0..34b6bba0a7 100644 --- a/examples/Plugins.ipynb +++ b/examples/Plugins.ipynb @@ -651,7 +651,7 @@ "metadata": {}, "source": [ "## DualMap\n", - "The DualMap plugin can be used to display two maps side by side, where panning and zooming is syncronized.\n", + "The DualMap plugin can be used to display two maps side by side, where panning and zooming is synchronized.\n", "\n", "The `DualMap` class can be used just like the normal `Map` class. The two sub-maps can be accessed with its `m1` and `m2` attributes." ] @@ -736,7 +736,7 @@ "\n", "plugins.LocateControl().add_to(m)\n", "\n", - "# If you want get the user device positon after load the map, set auto_start=True\n", + "# If you want get the user device position after load the map, set auto_start=True\n", "plugins.LocateControl(auto_start=True).add_to(m)\n", "\n", "m" diff --git a/examples/Popups.ipynb b/examples/Popups.ipynb index d0c38f2394..ffe0491efd 100644 --- a/examples/Popups.ipynb +++ b/examples/Popups.ipynb @@ -310,7 +310,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Note that you can put another `Figure` into an `IFrame` ; this should let you do stange things..." + "Note that you can put another `Figure` into an `IFrame` ; this should let you do strange things..." ] }, { diff --git a/examples/plugin-DualMap.ipynb b/examples/plugin-DualMap.ipynb index 1b9c193d6d..af92158b63 100644 --- a/examples/plugin-DualMap.ipynb +++ b/examples/plugin-DualMap.ipynb @@ -28,7 +28,7 @@ "source": [ "The `DualMap` class accepts the same arguments as the normal `Map` class. Except for these: 'width', 'height', 'left', 'top', 'position'.\n", "\n", - "In the following example we create a `DualMap`, add layer controls and then show the map. Try panning and zooming to check that both maps are syncronized." + "In the following example we create a `DualMap`, add layer controls and then show the map. Try panning and zooming to check that both maps are synchronized." ] }, { diff --git a/folium/features.py b/folium/features.py index 0f00e2922f..d8e42f9532 100644 --- a/folium/features.py +++ b/folium/features.py @@ -349,7 +349,7 @@ class GeoJson(Layer): popup: GeoJsonPopup, optional Show a different popup for each feature by passing a GeoJsonPopup object. marker: Circle, CircleMarker or Marker, optional - If your data contains Point geometry, you can format the markers by passing a Cirle, + If your data contains Point geometry, you can format the markers by passing a Circle, CircleMarker or Marker object with your wanted options. The `style_function` and `highlight_function` will also target the marker object you passed. embed: bool, default True @@ -723,9 +723,9 @@ class TopoJson(JSCSSMixin, Layer): Examples -------- - >>> # Providing file that shall be embeded. + >>> # Providing file that shall be embedded. >>> TopoJson(open('foo.json'), 'object.myobject') - >>> # Providing filename that shall not be embeded. + >>> # Providing filename that shall not be embedded. >>> TopoJson('foo.json', 'object.myobject') >>> # Providing dict. >>> TopoJson(json.load(open('foo.json')), 'object.myobject') diff --git a/folium/plugins/fullscreen.py b/folium/plugins/fullscreen.py index 252739b8e9..aa55e5cade 100644 --- a/folium/plugins/fullscreen.py +++ b/folium/plugins/fullscreen.py @@ -25,7 +25,7 @@ class Fullscreen(JSCSSMixin, MacroElement): change the title of the button when fullscreen is on, default: 'Exit Full Screen' force_separate_button : bool, default False - force seperate button to detach from zoom buttons, + force separate button to detach from zoom buttons, See https://github.com/brunob/leaflet.fullscreen for more information. """ diff --git a/folium/plugins/polyline_offset.py b/folium/plugins/polyline_offset.py index 30853e18df..4f66df9b06 100644 --- a/folium/plugins/polyline_offset.py +++ b/folium/plugins/polyline_offset.py @@ -24,7 +24,7 @@ class PolyLineOffset(JSCSSMixin, PolyLine): tooltip: str or folium.Tooltip, optional Display a text when hovering over the object. offset: int, default 0 - Relative pixel offset to draw a line parallel to an existant one, + Relative pixel offset to draw a line parallel to an existent one, at a fixed distance. **kwargs: Polyline options. See their Github page for the