Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/python-visualization/folium
/ functions
Functions
396 in github.com/python-visualization/folium
⨍
Functions
396
◇
Types & classes
95
↳
Endpoints
3
↓ 126 callers
Method
render
(self, **kwargs)
folium/map.py:57
↓ 114 callers
Method
add_to
( self, parent: Element, name: Optional[str] = None, index: Optional[int] = None )
folium/plugins/overlapping_marker_spiderfier.py:90
↓ 101 callers
Function
normalize
Return the input string without non-functional spaces or newlines.
folium/utilities.py:365
↓ 84 callers
Method
add_child
(self, child, name=None, index=None)
folium/map.py:488
↓ 38 callers
Function
remove_empty
Return a dict without None values.
folium/utilities.py:415
↓ 30 callers
Method
get_bounds
Computes the bounds of the object itself (not including it's children) in the form [[lat_min, lon_min], [lat_max, lon_max]]
folium/features.py:1088
↓ 23 callers
Method
_repr_html_
Displays the HTML Map in a Jupyter notebook.
folium/folium.py:350
↓ 15 callers
Method
__init__
( self, data: Any, width: Union[int, str, None] = None, height: Union[int, str
folium/features.py:165
↓ 12 callers
Function
_create
(*properties)
tests/test_features.py:178
↓ 11 callers
Function
path_options
Contains options and constants shared between vector overlays (Polygon, Polyline, Circle, CircleMarker, and Rectangle). Parameters -
folium/vector_layers.py:23
↓ 11 callers
Method
render
Renders the HTML representation of the element.
folium/features.py:191
↓ 10 callers
Method
__init__
( self, color: str = "blue", icon_color: str = "white", icon: str = "info-sign
folium/map.py:350
↓ 9 callers
Function
_assert_id_got_added
(data)
tests/test_features.py:186
↓ 8 callers
Function
camelize
Convert a python_style_variable_name to lowerCamelCase. Examples -------- >>> camelize("variable_name") 'variableName' >>> cameli
folium/utilities.py:343
↓ 8 callers
Function
get_bounds
Computes the bounds of the object in the form [[lat_min, lon_min], [lat_max, lon_max]]
folium/utilities.py:313
↓ 8 callers
Function
validate_location
Validate a single lat/lon coordinate pair and convert to a list Validate that location: * is a sized variable * with size 2 * allows
folium/utilities.py:69
↓ 7 callers
Function
get_obj_in_upper_tree
Return the first object in the parent tree of class `cls`.
folium/utilities.py:400
↓ 7 callers
Function
if_pandas_df_convert_to_numpy
Return a Numpy array from a Pandas dataframe. Iterating over a DataFrame has weird side effects, such as the first row being the column names
folium/utilities.py:152
↓ 7 callers
Method
on
(self, **event_map: JsCode)
folium/map.py:87
↓ 7 callers
Function
parse_options
Return a dict with lower-camelcase keys and non-None values..
folium/utilities.py:410
↓ 7 callers
Function
tojavascript
(obj: Union[str, JsCode, dict, list, Element])
folium/template.py:10
↓ 6 callers
Method
find_identifier
Find a unique identifier for each feature, create it if needed. According to the GeoJSON specs a feature: - MAY have an 'id' field w
folium/features.py:819
↓ 6 callers
Function
validate_locations
Validate an iterable with lat/lon coordinate pairs.
folium/utilities.py:129
↓ 6 callers
Method
wait_until
Wait for and return the element(s) selected by css_selector.
tests/selenium/conftest.py:51
↓ 5 callers
Method
__init__
( self, location: Optional[Sequence[float]] = None, radius: float = 50, popup:
folium/vector_layers.py:333
↓ 5 callers
Method
add_child
Add object `child` to the first map and store it for the second.
folium/plugins/dual_map.py:104
↓ 5 callers
Function
temp_html_filepath
Yields the path of a temporary HTML file containing data.
folium/utilities.py:373
↓ 4 callers
Method
_get_by_key
(cls, obj: Union[dict, list], key: str)
folium/features.py:1695
↓ 4 callers
Method
_repr_png_
Displays the PNG Map in a Jupyter notebook.
folium/folium.py:408
↓ 4 callers
Method
_vega_embed
(self, parent: TypeContainer)
folium/features.py:430
↓ 4 callers
Function
mercator
(x)
folium/utilities.py:249
↓ 4 callers
Method
set_icon
Set the icon for this Marker
folium/map.py:483
↓ 3 callers
Method
__init__
(self, target: MacroElement, method: str, *args, **kwargs)
folium/elements.py:198
↓ 3 callers
Method
__init__
( self, tiles: Union[str, xyzservices.TileProvider] = "OpenStreetMap", min_zoom: Optio
folium/raster_layers.py:94
↓ 3 callers
Function
_to_escaped_json
(obj: TypeJsonValue)
folium/template.py:37
↓ 3 callers
Function
c
(a)
folium/templates/pa7_hm.min.js:9
↓ 3 callers
Method
get_file
(self, filepath)
tests/selenium/conftest.py:30
↓ 3 callers
Function
image_to_url
Infers the type of an image argument and transforms it into a URL. Parameters ---------- image: string or array-like object
folium/utilities.py:164
↓ 3 callers
Function
normalize_bounds_type
(bounds: TypeBounds)
folium/utilities.py:339
↓ 3 callers
Function
parse_font_size
Parse a font size value, if number set as px
folium/utilities.py:456
↓ 3 callers
Method
reset
(self)
folium/map.py:268
↓ 3 callers
Function
tmpl
()
tests/test_features.py:21
↓ 3 callers
Method
verify_js_logs
Raise an error if there are errors in the browser JS console.
tests/selenium/conftest.py:43
↓ 2 callers
Method
__init__
(self, encoded: str)
folium/plugins/encoded.py:44
↓ 2 callers
Method
_add
(self, once: bool, **event_map: JsCode)
folium/map.py:93
↓ 2 callers
Method
_add_link
Modify a css or js link. If `name` does not exist, the link will be appended
folium/elements.py:56
↓ 2 callers
Method
_create_mapping
Internal function to create the mapping.
folium/features.py:901
↓ 2 callers
Function
_is_url
Check to see if `url` has a valid protocol.
folium/utilities.py:208
↓ 2 callers
Method
_to_png
Export the HTML to byte representation of a PNG image. Uses selenium to render the HTML and record a PNG. You may need to adjust the
folium/folium.py:361
↓ 2 callers
Method
_validate_function
Tests `self.style_function` and `self.highlight_function` to ensure they are functions returning dictionaries.
folium/features.py:802
↓ 2 callers
Function
_validate_locations_basics
Helper function that does basic validation of line and multi-line types.
folium/utilities.py:114
↓ 2 callers
Function
a
(a)
folium/templates/pa7_hm.min.js:9
↓ 2 callers
Method
convert_to_feature_collection
Convert data into a FeatureCollection if it is not already.
folium/features.py:785
↓ 2 callers
Function
deep_copy
Return a recursive deep-copy of item where each copy has a new ID.
folium/utilities.py:386
↓ 2 callers
Function
escape_backticks
Escape backticks so text can be used in a JS template.
folium/utilities.py:420
↓ 2 callers
Function
escape_double_quotes
(text: str)
folium/utilities.py:425
↓ 2 callers
Function
f
(a)
folium/templates/pa7_hm.min.js:9
↓ 2 callers
Method
fit_bounds
Fit the map to contain a bounding box with the maximum zoom level possible. Parameters ---------- bounds: list of (la
folium/folium.py:431
↓ 2 callers
Method
include
(cls, **kwargs)
folium/map.py:44
↓ 2 callers
Function
javascript_identifier_path_to_array_notation
Convert a path like obj1.obj2 to array notation: ["obj1"]["obj2"].
folium/utilities.py:429
↓ 2 callers
Method
process_data
Convert an unknown data input into a geojson dictionary.
folium/features.py:754
↓ 2 callers
Function
validate_multi_locations
Validate an iterable with possibly nested lists of coordinate pairs.
folium/utilities.py:136
↓ 1 callers
Method
__init__
( self, location: Optional[Sequence[float]] = None, width: Union[str, float] = "100%",
folium/folium.py:261
↓ 1 callers
Method
__init__
( self, angle=0.5, weight=4, space_weight=4, color="#000000",
folium/plugins/pattern.py:49
↓ 1 callers
Method
__init__
( self, data: Union[dict, str, TextIO], get_interval: Optional[JsCode] = None,
folium/plugins/timeline.py:108
↓ 1 callers
Method
_get_all_markers
(self, element: Element)
folium/plugins/overlapping_marker_spiderfier.py:97
↓ 1 callers
Method
_set_default_key
Replace the field with the most features with a 'default' field.
folium/features.py:935
↓ 1 callers
Method
_to_key
Convert dict to str and enable Jinja2 template syntax.
folium/features.py:929
↓ 1 callers
Method
add_css_link
Add or update css resource link.
folium/elements.py:48
↓ 1 callers
Method
add_js_link
Add or update JS resource link.
folium/elements.py:52
↓ 1 callers
Method
add_timelines
Add timelines to the control
folium/plugins/timeline.py:248
↓ 1 callers
Function
b
(a)
folium/templates/pa7_hm.min.js:9
↓ 1 callers
Function
check
(item, item_copy)
tests/test_utilities.py:164
↓ 1 callers
Method
clean_window
Make sure we have a fresh window (without restarting the browser).
tests/selenium/conftest.py:34
↓ 1 callers
Method
disable_draw
(self)
folium/plugins/geoman.py:100
↓ 1 callers
Method
enable_draw
(self, shape, /, **kwargs)
folium/plugins/geoman.py:96
↓ 1 callers
Method
get_feature_id
Return a value identifying the feature.
folium/features.py:921
↓ 1 callers
Method
get_geojson_from_web
(self, url: str)
folium/features.py:782
↓ 1 callers
Method
get_highlight_map
Return a dict that maps highlight parameters to features.
folium/features.py:897
↓ 1 callers
Function
get_notebook_html
Convert markdown to notebook to html files, remove them when done.
tests/selenium/test_selenium.py:42
↓ 1 callers
Method
get_style_map
Return a dict that maps style parameters to features.
folium/features.py:893
↓ 1 callers
Function
iter_coords
Returns all the coordinate tuples from a geometry or feature.
folium/utilities.py:282
↓ 1 callers
Function
main
()
docs/update_switcher.py:11
↓ 1 callers
Function
mercator_transform
Transforms an image computed in (longitude,latitude) coordinates into the a Mercator projection image. Parameters ---------- da
folium/utilities.py:216
↓ 1 callers
Function
norm
(col)
tests/plugins/test_time_slider_choropleth.py:62
↓ 1 callers
Function
read
(*parts)
setup.py:8
↓ 1 callers
Method
render
(self, **kwargs)
folium/elements.py:34
↓ 1 callers
Method
render
(self, **kwargs)
folium/plugins/pattern.py:74
↓ 1 callers
Method
set_global_options
(self, **kwargs)
folium/plugins/geoman.py:92
↓ 1 callers
Method
style_data
Applies self.style_function to each feature of self.data.
folium/features.py:1066
↓ 1 callers
Method
style_function
(x)
folium/features.py:1662
↓ 1 callers
Method
test_params
(self, keys)
folium/plugins/search.py:130
↓ 1 callers
Function
walk_subpkg
(name)
setup.py:12
↓ 1 callers
Method
warn_for_geometry_collections
Checks for GeoJson GeometryCollection features to warn user about incompatibility.
folium/features.py:1194
Method
__get__
(self, obj, owner)
folium/map.py:30
Method
__init__
(self, js_code: Union[str, "JsCode"])
folium/utilities.py:446
Method
__init__
( self, location: Sequence[float], number_of_sides: int = 4, rotation: int = 0
folium/features.py:106
Method
__init__
( self, data: Any, width: Union[int, str, None] = None, height: Union[int, str
folium/features.py:282
Method
__init__
( self, data: Any, style_function: Optional[Callable] = None, highlight_functi
folium/features.py:688
Method
__init__
( self, data: dict, feature_identifier: str, geojson_obj: GeoJson, )
folium/features.py:883
next →
1–100 of 396, ranked by callers