Skip to content

Commit cfa8e99

Browse files
author
Stefan Kuethe
committed
Update README
1 parent 585aacf commit cfa8e99

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,20 @@ Render PMTiles from vector and raster sources.
3535

3636
Drag and drop GPX, GeoJSON, KML or TopoJSON files on to the map. Modify, draw and select features.
3737

38+
<a href="https://eoda-dev.github.io/py-openlayers/marimo/drag-and-drop.html" target="_blank">Drag-and-drop example notebook<a>
39+
40+
### GeoPandas Extension
41+
42+
```python
43+
import openlayers as ol
44+
45+
data = "zip+https://github.com/Toblerity/Fiona/files/11151652/coutwildrnp.zip"
46+
47+
gdf = ol.GeoDataFrame.from_file(data)
48+
49+
gdf.ol.color_category("STATE").explore()
50+
```
51+
3852
## Installation
3953

4054
```bash

examples/standalone/gpd_fit_bounds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
m = gdf.ol.color_category("STATE").explore()
1010
# m.add_call("fitBoundsFromLonLat", list(gdf.total_bounds))
1111
# m.fit_bounds(list(gdf.total_bounds))
12-
m.set_view(ol.View(extent=list(gdf.total_bounds)))
12+
# m.set_view(ol.View(extent=list(gdf.total_bounds)))
1313
m.save()

0 commit comments

Comments
 (0)