We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b3c961 commit cfd7054Copy full SHA for cfd7054
docs/concepts/layers.md
@@ -46,3 +46,23 @@ const style = {
46
```
47
48
> See [Styles API](../../api/styles/) and [ol/style/flat](https://openlayers.org/en/latest/apidoc/module-ol_style_flat.html) for details.
49
+
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
+```
0 commit comments