viz

Visualization utilities for geospatial and map-related operations.

This subpackage provides tools to enhance and simplify visualization workflows (for interactive maps and geospatial data rendering).

General utilities

cmap_discretization(cmap, n_colors)

Creates a discrete colormap based on the input.

color_bar_index(cmap, n_colors[, labels])

Creates a color bar with correctly aligned labels.

Utilities for maps

get_base_map_center(gdf[, center_method])

Calculates geographical center and bounding box for a GeoDataFrame.

create_base_folium_map(gdf[, center_method, ...])

Initializes a Folium map centered on the extent of a GeoDataFrame.

BindColormap(layer, colormap[, display])

Binds a colormap to a Folium layer with visibility synchronization.