Skip to content

Commit 8025281

Browse files
Restore the common module (#1273)
* Restore the common module * Fix broken data link * Fix broken links * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update mkdocs jupyter version --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b19734e commit 8025281

16 files changed

+7628
-2780
lines changed

docs/maps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ m
3030

3131
```python
3232
m = leafmap.Map(center=[20, 0], zoom=1)
33-
lines = 'https://raw.githubusercontent.com/opengeos/leafmap/master/examples/data/cable_geo.geojson'
33+
lines = 'https://github.com/opengeos/datasets/releases/download/vector/cables.geojson'
3434
m.add_geojson(lines, layer_name="Cable lines")
3535
m
3636
```

docs/notebooks/00_key_features.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@
296296
"outputs": [],
297297
"source": [
298298
"m = leafmap.Map(center=[0, 0], zoom=2)\n",
299-
"in_geojson = \"https://raw.githubusercontent.com/opengeos/leafmap/master/examples/data/cable_geo.geojson\"\n",
299+
"in_geojson = (\n",
300+
" \"https://github.com/opengeos/datasets/releases/download/vector/cables.geojson\"\n",
301+
")\n",
300302
"m.add_geojson(in_geojson, layer_name=\"Cable lines\")\n",
301303
"m"
302304
]
@@ -420,7 +422,7 @@
420422
"\n",
421423
"m = leafmap.Map()\n",
422424
"gdf = gpd.read_file(\n",
423-
" \"https://github.com/opengeos/leafmap/raw/master/examples/data/cable_geo.geojson\"\n",
425+
" \"https://github.com/opengeos/datasets/releases/download/vector/cables.geojson\"\n",
424426
")\n",
425427
"m.add_gdf(gdf, layer_name=\"Cable lines\")\n",
426428
"m"

docs/notebooks/10_add_vector.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@
7878
"source": [
7979
"m = leafmap.Map(center=[0, 0], zoom=2)\n",
8080
"\n",
81-
"in_geojson = \"https://raw.githubusercontent.com/opengeos/leafmap/master/examples/data/cable_geo.geojson\"\n",
81+
"in_geojson = (\n",
82+
" \"https://github.com/opengeos/datasets/releases/download/vector/cables.geojson\"\n",
83+
")\n",
8284
"m.add_geojson(in_geojson, layer_name=\"Cable lines\")\n",
8385
"\n",
8486
"m"

docs/notebooks/13_geopandas.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"source": [
7171
"Use GeoPandas to read a GeoJSON from an HTTP URL and return it as a GeoDataFrame.\n",
7272
"\n",
73-
"Sample data: https://github.com/opengeos/leafmap/raw/master/examples/data/cable_geo.geojson"
73+
"Sample data: https://github.com/opengeos/datasets/releases/download/vector/cables.geojson"
7474
]
7575
},
7676
{
@@ -81,7 +81,7 @@
8181
"outputs": [],
8282
"source": [
8383
"gdf = gpd.read_file(\n",
84-
" \"https://github.com/opengeos/leafmap/raw/master/examples/data/cable_geo.geojson\"\n",
84+
" \"https://github.com/opengeos/datasets/releases/download/vector/cables.geojson\"\n",
8585
")"
8686
]
8787
},

docs/notebooks/16_heremap.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,9 @@
260260
"source": [
261261
"m = leafmap.Map(api_key=api_key, center=[0, 0], zoom=2, layers_control=True)\n",
262262
"\n",
263-
"in_geojson = \"https://raw.githubusercontent.com/opengeos/leafmap/master/examples/data/cable_geo.geojson\"\n",
263+
"in_geojson = (\n",
264+
" \"https://github.com/opengeos/datasets/releases/download/vector/cables.geojson\"\n",
265+
")\n",
264266
"m.add_geojson(in_geojson, layer_name=\"Cable lines\")\n",
265267
"\n",
266268
"m"

docs/notebooks/26_kepler_gl.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
"outputs": [],
162162
"source": [
163163
"m = leafmap.Map(center=[20, 0], zoom=1)\n",
164-
"lines = \"https://raw.githubusercontent.com/opengeos/leafmap/master/examples/data/cable_geo.geojson\"\n",
164+
"lines = \"https://github.com/opengeos/datasets/releases/download/vector/cables.geojson\"\n",
165165
"m.add_geojson(lines, layer_name=\"Cable lines\")\n",
166166
"m"
167167
]

docs/notebooks/44_attribute_table.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@
5757
" info_mode=False,\n",
5858
")\n",
5959
"\n",
60-
"in_geojson = \"https://raw.githubusercontent.com/opengeos/leafmap/master/examples/data/cable_geo.geojson\"\n",
60+
"in_geojson = (\n",
61+
" \"https://github.com/opengeos/datasets/releases/download/vector/cables.geojson\"\n",
62+
")\n",
6163
"m.add_geojson(in_geojson, layer_name=\"Cable lines\", info_mode=False)\n",
6264
"\n",
6365
"m"

docs/notebooks/58_bokeh.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
221221
"source": [
222222
"m = leafmap.Map()\n",
223223
"m.add_basemap(\"CartoDB.DarkMatter\")\n",
224-
"url = \"https://github.com/opengeos/leafmap/raw/master/examples/data/cable_geo.geojson\"\n",
224+
"url = \"https://github.com/opengeos/datasets/releases/download/vector/cables.geojson\"\n",
225225
"m.add_vector(url, line_color=\"color\", line_width=2)\n",
226226
"m"
227227
]

docs/workshops/EarthCube_2023.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
"outputs": [],
352352
"source": [
353353
"m = leafmap.Map()\n",
354-
"url = \"https://github.com/opengeos/leafmap/raw/master/examples/data/cable_geo.geojson\"\n",
354+
"url = \"https://github.com/opengeos/datasets/releases/download/vector/cables.geojson\"\n",
355355
"m.add_vector(url, layer_name=\"Cable lines\")\n",
356356
"m"
357357
]
@@ -375,7 +375,7 @@
375375
"\n",
376376
"m = leafmap.Map()\n",
377377
"m.add_basemap(\"CartoDB.DarkMatter\")\n",
378-
"url = \"https://github.com/opengeos/leafmap/raw/master/examples/data/cable_geo.geojson\"\n",
378+
"url = \"https://github.com/opengeos/datasets/releases/download/vector/cables.geojson\"\n",
379379
"callback = lambda feat: {\"color\": feat[\"properties\"][\"color\"]}\n",
380380
"m.add_vector(url, layer_name=\"Cable lines\", style_callback=callback)\n",
381381
"m"

docs/workshops/FOSS4G_2021.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,7 +1603,9 @@
16031603
"outputs": [],
16041604
"source": [
16051605
"m = leafmap.Map(center=[0, 0], zoom=2)\n",
1606-
"in_geojson = \"https://raw.githubusercontent.com/opengeos/leafmap/master/examples/data/cable_geo.geojson\"\n",
1606+
"in_geojson = (\n",
1607+
" \"https://github.com/opengeos/datasets/releases/download/vector/cables.geojson\"\n",
1608+
")\n",
16071609
"m.add_geojson(in_geojson, layer_name=\"Cable lines\", info_mode=\"on_hover\")\n",
16081610
"m"
16091611
]
@@ -1764,7 +1766,7 @@
17641766
"source": [
17651767
"m = leafmap.Map()\n",
17661768
"gdf = gpd.read_file(\n",
1767-
" \"https://github.com/opengeos/leafmap/raw/master/examples/data/cable_geo.geojson\"\n",
1769+
" \"https://github.com/opengeos/datasets/releases/download/vector/cables.geojson\"\n",
17681770
")\n",
17691771
"m.add_gdf(gdf, layer_name=\"Cable lines\")\n",
17701772
"m"

0 commit comments

Comments
 (0)