Skip to content

Commit e221059

Browse files
author
Stefan Kuethe
committed
Add draw control notebook
1 parent eedf5db commit e221059

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"id": "85309f05",
7+
"metadata": {},
8+
"outputs": [],
9+
"source": [
10+
"%pip install openlayers"
11+
]
12+
},
13+
{
14+
"cell_type": "code",
15+
"execution_count": null,
16+
"id": "0b3f241f",
17+
"metadata": {},
18+
"outputs": [],
19+
"source": [
20+
"import openlayers as ol"
21+
]
22+
},
23+
{
24+
"cell_type": "code",
25+
"execution_count": null,
26+
"id": "4bab49cc",
27+
"metadata": {},
28+
"outputs": [],
29+
"source": [
30+
"m = ol.MapWidget(controls=[ol.DrawControl()])"
31+
]
32+
},
33+
{
34+
"cell_type": "code",
35+
"execution_count": null,
36+
"id": "c678eb5f",
37+
"metadata": {},
38+
"outputs": [],
39+
"source": [
40+
"m"
41+
]
42+
},
43+
{
44+
"cell_type": "code",
45+
"execution_count": null,
46+
"id": "ce5b3e61",
47+
"metadata": {},
48+
"outputs": [],
49+
"source": [
50+
"m.features"
51+
]
52+
},
53+
{
54+
"cell_type": "code",
55+
"execution_count": null,
56+
"id": "fa5198d0",
57+
"metadata": {},
58+
"outputs": [],
59+
"source": []
60+
}
61+
],
62+
"metadata": {
63+
"kernelspec": {
64+
"display_name": ".venv",
65+
"language": "python",
66+
"name": "python3"
67+
},
68+
"language_info": {
69+
"codemirror_mode": {
70+
"name": "ipython",
71+
"version": 3
72+
},
73+
"file_extension": ".py",
74+
"mimetype": "text/x-python",
75+
"name": "python",
76+
"nbconvert_exporter": "python",
77+
"pygments_lexer": "ipython3",
78+
"version": "3.11.11"
79+
}
80+
},
81+
"nbformat": 4,
82+
"nbformat_minor": 5
83+
}

0 commit comments

Comments
 (0)