Skip to content

Commit 6a06973

Browse files
author
Stefan Kuethe
committed
Add marimo control example
1 parent cfd7054 commit 6a06973

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/concepts/controls.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,14 @@ Controls are user interface elements that you can add to your map:
77
```
88

99
> See [Controls API](../../api/controls/)
10+
11+
```python {marimo display_code=True}
12+
import openlayers as ol
13+
from openlayers.basemaps import CartoBasemapLayer
14+
15+
m = ol.MapWidget(
16+
layers=[CartoBasemapLayer()],
17+
controls=[ol.OverviewMapControl(collapsed=False)]
18+
)
19+
m
20+
```

0 commit comments

Comments
 (0)