@@ -15,7 +15,6 @@ Examples
15
15
import json
16
16
17
17
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")
19
18
20
19
m = Map(center=(52.3,8.0), zoom = 3, basemap= basemaps.Esri.WorldTopoMap)
21
20
@@ -24,12 +23,6 @@ Examples
24
23
hover_style={'fillColor': 'red' , 'fillOpacity': 0.2},
25
24
name = 'Countries')
26
25
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)
33
26
m.add_layer(geo_data)
34
27
m.add_control(LayersControl())
35
28
@@ -41,12 +34,12 @@ Points example:
41
34
42
35
from ipyleaflet import Map, GeoJSON, GeoData
43
36
import geopandas, pandas as pd, numpy as np
44
-
37
+
45
38
m = Map(center=(46.91, 7.43), zoom=15)
46
-
39
+
47
40
numpoints = 10
48
41
center = (7.43, 46.91)
49
-
42
+
50
43
df = pd.DataFrame(
51
44
{'Conc': 1 * np.random.randn(numpoints) + 17,
52
45
'Longitude': 0.0004 * np.random.randn(numpoints) + center[0],
@@ -60,7 +53,7 @@ Points example:
60
53
hover_style={'fillColor': 'red' , 'fillOpacity': 0.2},
61
54
point_style={'radius': 5, 'color': 'red', 'fillOpacity': 0.8, 'fillColor': 'blue', 'weight': 3},
62
55
name = 'Release')
63
-
56
+
64
57
m.add_layer(geo_data)
65
58
m
66
59
0 commit comments