Skip to content

Commit 432038c

Browse files
authored
Merge pull request #892 from martinRenou/fix_docs_build
Fix docs
2 parents 25db8a9 + f099c5e commit 432038c

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

docs/source/api_reference/geodata.rst

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Examples
1515
import json
1616

1717
countries = geopandas.read_file(geopandas.datasets.get_path('naturalearth_lowres'))
18-
rivers = geopandas.read_file("https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/physical/ne_10m_rivers_lake_centerlines.zip")
1918

2019
m = Map(center=(52.3,8.0), zoom = 3, basemap= basemaps.Esri.WorldTopoMap)
2120

@@ -24,12 +23,6 @@ Examples
2423
hover_style={'fillColor': 'red' , 'fillOpacity': 0.2},
2524
name = 'Countries')
2625

27-
rivers_data = GeoData(geo_dataframe = rivers,
28-
style={'color': 'purple', 'opacity':3, 'weight':1.9, 'dashArray':'2', 'fillOpacity':0.6},
29-
hover_style={'fillColor': 'red' , 'fillOpacity': 0.2},
30-
name = 'Rivers')
31-
32-
m.add_layer(rivers_data)
3326
m.add_layer(geo_data)
3427
m.add_control(LayersControl())
3528

@@ -41,12 +34,12 @@ Points example:
4134

4235
from ipyleaflet import Map, GeoJSON, GeoData
4336
import geopandas, pandas as pd, numpy as np
44-
37+
4538
m = Map(center=(46.91, 7.43), zoom=15)
46-
39+
4740
numpoints = 10
4841
center = (7.43, 46.91)
49-
42+
5043
df = pd.DataFrame(
5144
{'Conc': 1 * np.random.randn(numpoints) + 17,
5245
'Longitude': 0.0004 * np.random.randn(numpoints) + center[0],
@@ -60,7 +53,7 @@ Points example:
6053
hover_style={'fillColor': 'red' , 'fillOpacity': 0.2},
6154
point_style={'radius': 5, 'color': 'red', 'fillOpacity': 0.8, 'fillColor': 'blue', 'weight': 3},
6255
name = 'Release')
63-
56+
6457
m.add_layer(geo_data)
6558
m
6659

0 commit comments

Comments
 (0)