MapLibre Examples Gallery
This section showcases all the official MapLibre GL JS examples recreated using maplibreum. Each example demonstrates feature parity between the original JavaScript implementation and our Python API.
About This Gallery
We have successfully recreated all 123 official MapLibre GL JS examples using maplibreum. This demonstrates complete feature coverage and validates that maplibreum can handle real-world mapping scenarios.
How to Use This Gallery
For each example:
Original Example: The reference implementation from maplibre.org
Reproduced Example: Our Python/maplibreum implementation
Test Code: Link to the Python test that generates the reproduced example
Coverage Statistics
Total Examples: 123/123 (100%)
Implementation Status: Complete ✓
Test Coverage: All examples have automated pytest tests
Example Categories
The examples are organized by functionality:
3D and Terrain
Markers and Symbols
Data Sources
Layers and Styling
Animation
Interactive Features
Real-time Data
Video and Media
Custom Layers
Viewing Examples Locally
To view the original MapLibre examples:
# Navigate to the pages directory
cd development/maplibre_examples/pages/
# Open any example in your browser
To regenerate the reproduced examples:
# Run the example tests
pytest tests/test_examples/ -v
# The generated HTML files are in development/maplibre_examples/reproduced_pages/
Full Example List
All 123 examples are fully implemented and tested. For a complete list with implementation status, see the status.json file.
Implementation Notes
Feature Parity
Each example demonstrates that maplibreum provides complete feature parity with MapLibre GL JS, including:
All layer types (raster, vector, 3D, etc.)
Interactive controls and events
Animation and transitions
Custom styling and expressions
Terrain, sky, and fog effects
Video and canvas sources
Real-time data updates
And more!
Testing Approach
Every example has:
An automated pytest test that generates the HTML
The test validates the generated configuration
Optional browser-based validation using Playwright
Contributing New Examples
To add new MapLibre examples:
Run
python development/maplibre_examples/scrapping.pyto fetch the latest examplesCheck
status.jsonfor unimplemented examplesCreate a corresponding test in
tests/test_examples/Update
status.jsonwhen complete