Python Bindings for OpenLayersJS
Project description
py-openlayers: OpenLayers for Python
Provides Python bindings for OpenLayers, a high-performance, full-featured web mapping library that displays maps from various sources and formats. It makes it easy to create interactive maps in Marimo and Jupyter notebooks with a few lines of code in a pythonic way.
Features
Tiled Layers
Pull tiles from OSM, Carto, MapTiler and any other XYZ source.
Vector Layers
Render vector data from GeoJSON, TopoJSON, KML, GML and other formats.
Controls
Add geocoding, draw, full screen and other controls to your map.
WebGL
Render large data sets using WebGL.
PMTiles
Render PMTiles from vector and raster sources.
Interactions
Drag and drop GPX, GeoJSON, KML or TopoJSON files on to the map. Modify, draw and select features.
GeoPandas Extension
import openlayers as ol
data = "zip+https://github.com/Toblerity/Fiona/files/11151652/coutwildrnp.zip"
gdf = ol.GeoDataFrame.from_file(data)
gdf.ol.color_category("STATE").explore()
Installation
uv init
uv add openlayers
uv add "git+https://github.com/eoda-dev/py-openlayers@main"
Quickstart
import openlayers as ol
# Jupyter or Marimo
m = ol.MapWidget()
m # Display map
# Standalone
m = ol.Map()
m.save()
Marimo Live Notebooks
Shiny Live Apps
Documentation
Note
The documentation is still in an early stage, more examples will be added as soon as possible.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openlayers-0.1.6.tar.gz.
File metadata
- Download URL: openlayers-0.1.6.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3eb3d553c75dca688a47b48afbc383d6f58a284f1c253a91d8e0285ca84eab6
|
|
| MD5 |
7b18ab28683d9c9f256928ba7c5448ff
|
|
| BLAKE2b-256 |
250fda7dbe1d2fdeb4059edf657d81bf4d9ab665d9e9e5cd1fe14b90dbbbc08c
|
File details
Details for the file openlayers-0.1.6-py3-none-any.whl.
File metadata
- Download URL: openlayers-0.1.6-py3-none-any.whl
- Upload date:
- Size: 758.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d74e3e4844ffa056f37940bf72d4256bf39eca3b2c9c477e57dad1b619b19b5
|
|
| MD5 |
fb1d65668df490e06342a58f99b0db74
|
|
| BLAKE2b-256 |
a09335b8bb38374675c6eb0cb60e58609de1093a4ae49074dafb2a3482b21334
|