Yunus Serhat Bıçakçı commited on
Commit
baa4943
·
1 Parent(s): f622e1c
Files changed (1) hide show
  1. 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
- # cities = 'https://raw.githubusercontent.com/giswqs/leafmap/master/examples/data/us_cities.csv'
27
- regions = 'https://raw.githubusercontent.com/yunusserhat/Github/main/data/londonborough.geojson'
28
 
29
- m.add_geojson(regions, layer_name='London Boroughs')
30
- # m.add_points_from_xy(
31
- # cities,
32
- # x="longitude",
33
- # y="latitude",
34
- # color_column='region',
35
- # icon_names=['gear', 'map', 'leaf', 'globe'],
36
- # spin=True,
37
- # add_legend=True,
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)