Skip to content

Commit 70fef6f

Browse files
author
Stefan Kuethe
committed
Add more examples
1 parent b325a6e commit 70fef6f

File tree

8 files changed

+18
-29
lines changed

8 files changed

+18
-29
lines changed

docs/concepts/layers.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,4 @@ const style = {
4747

4848
> See [Styles API](../../api/styles/) and [ol/style/flat](https://openlayers.org/en/latest/apidoc/module-ol_style_flat.html) for details.
4949
50-
```python {marimo display_code=true}
51-
import openlayers as ol
52-
53-
data = "https://openlayers.org/en/latest/examples/data/geojson/roads-seoul.geojson"
54-
55-
vector = ol.VectorLayer(
56-
id="roads",
57-
source=ol.VectorSource(url=data),
58-
fit_bounds=True,
59-
style=ol.FlatStyle(
60-
stroke_color = "steelblue",
61-
stroke_width = 3.5
62-
)
63-
)
64-
65-
m = ol.MapWidget(layers=[ol.BasemapLayer(), vector])
66-
m.add_default_tooltip()
67-
m
68-
```
50+
<iframe src="https://marimo.app/l/5a5k2w?embed=true" width="100%" height=700 frameBorder="0"></iframe>

docs/index.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,4 @@ m = Map(controls=[ol.ZoomSliderControl()])
1717
m.save()
1818
```
1919

20-
```python {marimo display_code=true}
21-
import openlayers as ol
22-
23-
m = ol.MapWidget(controls=[ol.ZoomSliderControl()])
24-
m
25-
```
20+
<iframe src="https://marimo.app/l/c7os0x?embed=true" width="100%" height=700 frameBorder="0"></iframe>

docs/showcase/get-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Get started
22

3-
<iframe src="https://marimo.app/l/1s4q2r?embed=true" width="100%" height=700 frameBorder="0"></iframe>
3+
<iframe src="https://marimo.app/l/c7os0x?embed=true" width="100%" height=700 frameBorder="0"></iframe>

docs/showcase/gpx-vector-source.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# GPX vector source
2+
3+
<iframe src="https://marimo.app/l/rorbhm?embed=true" width="100%" height=700 frameBorder="0"></iframe>

docs/showcase/kml-vector-source.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# KML vector source
2+
3+
<iframe src="https://marimo.app/l/byhqa9?embed=true" width="100%" height=700 frameBorder="0"></iframe>

docs/showcase/mvt-tile-source.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# MVT tile source
2+
3+
<iframe src="https://marimo.app/l/lctvrw?embed=true" width="100%" height=700 frameBorder="0"></iframe>

docs/showcase/style-expressions-text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Style expressions text
1+
# Style expressions
22

33
See also [style-expressions](https://openlayers.org/en/latest/examples/style-expressions.html)
44

mkdocs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ nav:
5555
# - Express: api/express.md
5656
- Examples:
5757
- Get started: showcase/get-started.md
58-
- Style expressions: showcase/style-expressions.md
59-
- Style expressions text: showcase/style-expressions-text.md
58+
# - Style expressions: showcase/style-expressions.md
59+
- Style expressions: showcase/style-expressions-text.md
60+
- GPX vector source: showcase/gpx-vector-source.md
61+
- KML vector source: showcase/kml-vector-source.md
62+
- MVT tile source: showcase/mvt-tile-source.md
6063
# - Icons: showcase/icons.md
6164
- Changelog: changelog.md

0 commit comments

Comments
 (0)