You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: folium/plugins/geocoder.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
fromfolium.elementsimportJSCSSMixin
5
5
fromfolium.utilitiesimportparse_options
6
6
7
+
fromtypingimportOptional
8
+
7
9
8
10
classGeocoder(JSCSSMixin, MacroElement):
9
11
"""A simple geocoder for Leaflet that by default uses OSM/Nominatim.
@@ -19,7 +21,7 @@ class Geocoder(JSCSSMixin, MacroElement):
19
21
Choose from 'topleft', 'topright', 'bottomleft' or 'bottomright'.
20
22
add_marker: bool, default True
21
23
If True, adds a marker on the found location.
22
-
geocode_zoom: int, default 11
24
+
geocode_zoom: int, default 11, optional
23
25
Set zoom level used for displaying the geocode result, note that this only has an effect when add_marker is set to False. Set this to None to preserve the current map zoom level.
24
26
geocode_provider: str, default 'nominatim'
25
27
Defaults to "nominatim", see https://github.com/perliedman/leaflet-control-geocoder/tree/2.4.0/src/geocoders for other built-in providers.
0 commit comments