Spaces:
Sleeping
Sleeping
Yunus Serhat Bıçakçı
commited on
Commit
·
baa4943
1
Parent(s):
f622e1c
update
Browse files- pages/5_📍_Marker_Cluster.py +12 -12
pages/5_📍_Marker_Cluster.py
CHANGED
@@ -23,18 +23,18 @@ with st.expander("See source code"):
|
|
23 |
with st.echo():
|
24 |
|
25 |
m = leafmap.Map(center=[51.50, -0.1], zoom=10)
|
26 |
-
|
27 |
-
|
28 |
|
29 |
-
m.add_geojson(
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
m
|
40 |
m.to_streamlit(height=700)
|
|
|
23 |
with st.echo():
|
24 |
|
25 |
m = leafmap.Map(center=[51.50, -0.1], zoom=10)
|
26 |
+
tweets = 'https://raw.githubusercontent.com/yunusserhat/Github/main/data/hatetestshort.csv'
|
27 |
+
borough = 'https://raw.githubusercontent.com/yunusserhat/Github/main/data/londonborough.geojson'
|
28 |
|
29 |
+
m.add_geojson(borough, layer_name='London Boroughs')
|
30 |
+
m.add_points_from_xy(
|
31 |
+
tweets,
|
32 |
+
x="longitude",
|
33 |
+
y="latitude",
|
34 |
+
color_column='hate_pred',
|
35 |
+
icon_names=['gear', 'map', 'leaf', 'globe'],
|
36 |
+
spin=True,
|
37 |
+
add_legend=True,
|
38 |
+
)
|
39 |
m
|
40 |
m.to_streamlit(height=700)
|