Skip to main content

dash-openlayers

OpenLayers mapping components for Plotly Dash. Build maps declaratively in Python, use OpenLayers for rendering and editing, and receive map events and feature data in Dash callbacks.

Install

pip install dash-openlayers

Requires Python 3.10 or newer. Dash is installed as a package dependency.

Quick Example

import dash
from dash import Input, Output, html
import dash_openlayers as dol

app = dash.Dash(__name__)
app.layout = html.Div(
    [
        dol.Map(
            id="map",
            center=[10, 45],
            zoom=5,
            children=[
                dol.TileLayer(id="osm", source="OSM"),
                dol.VectorLayer(
                    id="places",
                    geojson={
                        "type": "FeatureCollection",
                        "features": [
                            {
                                "type": "Feature",
                                "geometry": {"type": "Point", "coordinates": [10, 45]},
                                "properties": {"name": "Sample place"},
                            }
                        ],
                    },
                ),
                dol.SelectInteraction(id="selection", layerId="places"),
                dol.LayerControl(id="layers"),
            ],
            style={"height": "600px"},
        ),
        html.Pre(id="selection-output"),
    ]
)


@app.callback(Output("selection-output", "children"), Input("selection", "selectedGeoJSON"))
def show_selection(selection):
    return str(selection or "Select a feature")


if __name__ == "__main__":
    app.run(debug=True)

Components

  • Maps, synchronized view state, custom Proj4 projections, and click events.
  • OSM/XYZ, GeoJSON vector, WMS, WMTS, MVT vector-tile, and WFS GeoJSON layers.
  • Draw, select, modify, snapping, per-feature topology validation, and undo/redo.
  • GeoJSON/WKT input and GeoJSON/WKT/TopoJSON edit output.
  • Point clustering, decluttering, and layer visibility/opacity/order controls.

WFS-T writes are not performed by WFSLayer; see the guarded example in tests/demos/wfs_demo.py for an application-owned transaction callback.

Documentation

Contributing

See CONTRIBUTING.md for development setup and workflow.

Metadata

Release files for dash-openlayers 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dash-openlayers 0.1.1
File Size Uploaded Provenance Actions
dash_openlayers-0.1.1.tar.gz 924.9 kB With provenance Details for dash_openlayers-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dash-openlayers 0.1.1
File Interpreter ABI Platform Actions
dash_openlayers-0.1.1-py3-none-any.whl Python 3 none any Details for dash_openlayers-0.1.1-py3-none-any.whl

Total release size: 1.9 MB

Release files / dash_openlayers-0.1.1.tar.gz

Download URL dash_openlayers-0.1.1.tar.gz
Size 924.9 kB
Tags Source
SHA-256 checksum
How to use checksums
95f7ac99fa8ebaa53fc7f1ff27e2044951998abc57dd4b3a41e5dc5cf623f257
BLAKE2b-256 checksum
How to use checksums
6ad12ecf5658225fd5740e8265132fd9ced964558c768ee299e583ad217e8df5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / dash_openlayers-0.1.1-py3-none-any.whl

Download URL dash_openlayers-0.1.1-py3-none-any.whl
Size 945.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a0e36afede9343c845ece8d4b1e3d4aa1f46e57445b151c20c00b3276075bb0
BLAKE2b-256 checksum
How to use checksums
1f2dbe4b00f98bc7925ec781689d8b7eebfbdd7848cbfd77536f1f0682e2fd5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for dash-openlayers 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dash_openlayers-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page