A Python package for geospatial analysis and interactive mapping in a Jupyter environment.
Create an interactive choropleth map that visualizes precipitation intensity with both a numeric colorbar and a categorical legend for overlays.
precip_mm numeric property and a value range, render a gradient fill across the polygons that interpolates across the provided palette, and display a continuous colorbar with min/max labels tied to the same range. @test@generates
from typing import List, Dict, Any, Tuple, Optional
def create_precipitation_map(
features: List[Dict[str, Any]],
palette: List[str],
value_range: Tuple[float, float],
output_html: str,
) -> "Map":
"""Render a choropleth over the given polygon features using the palette and value range, include a matching continuous colorbar, and return the map object after exporting it to the output_html path."""
def add_categorical_overlay(
map_obj: "Map",
overlays: Optional[Dict[str, List[Dict[str, Any]]]],
colors: Optional[Dict[str, str]],
) -> "Map":
"""Render optional overlay features grouped by category, apply the provided colors, attach a legend that mirrors those categories, and return the updated map."""Provides interactive map rendering, choropleth styling, colorbars, and legend widgets.
@satisfied-by
tessl i tessl/pypi-leafmap@0.52.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10