Yunus Serhat Bıçakçı commited on
Commit
929de88
·
1 Parent(s): ad5fbfa
app.py CHANGED
@@ -23,28 +23,34 @@ st.title("Interactive Crime Map Application")
23
 
24
  st.markdown(
25
  """
26
- This multi-page web app demonstrates various interactive web apps created using [streamlit](https://streamlit.io) and open-source mapping libraries,
27
  such as [leafmap](https://leafmap.org), [geemap](https://geemap.org), [pydeck](https://deckgl.readthedocs.io), and [kepler.gl](https://docs.kepler.gl/docs/keplergl-jupyter).
28
- This is an open-source project and you are very welcome to contribute your comments, questions, resources, and apps as [issues](https://github.com/giswqs/streamlit-geospatial/issues) or
29
- [pull requests](https://github.com/giswqs/streamlit-geospatial/pulls) to the [GitHub repository](https://github.com/giswqs/streamlit-geospatial).
30
-
31
  """
32
  )
33
 
34
  st.info("Click on the left sidebar menu to navigate to the different apps.")
35
 
36
- st.subheader("Timelapse of Satellite Imagery")
37
  st.markdown(
38
  """
39
- The following timelapse animations were created using the Timelapse web app. Click `Timelapse` on the left sidebar menu to create your own timelapse for any location around the globe.
40
- """
41
  )
42
 
43
- m = leafmap.Map(center=(51.50, -0.1), zoom=11,
44
- minimap_control=False,
45
- measure_control=False,
46
- fullscreen_control=False,
47
- attribution_control=False,
48
- )
49
- m.to_streamlit()
50
-
 
 
 
 
 
 
 
 
 
23
 
24
  st.markdown(
25
  """
26
+ This interactive crime map apps created using [streamlit](https://streamlit.io) and open-source mapping libraries,
27
  such as [leafmap](https://leafmap.org), [geemap](https://geemap.org), [pydeck](https://deckgl.readthedocs.io), and [kepler.gl](https://docs.kepler.gl/docs/keplergl-jupyter).
28
+
 
 
29
  """
30
  )
31
 
32
  st.info("Click on the left sidebar menu to navigate to the different apps.")
33
 
34
+ st.subheader("Interactive Crime Map")
35
  st.markdown(
36
  """
37
+
38
+ """
39
  )
40
 
41
+ m = leafmap.Map(center=[51.50, -0.1], zoom=10)
42
+ tweets = 'https://raw.githubusercontent.com/yunusserhat/Github/main/data/hatetestshort.csv'
43
+ borough = 'https://raw.githubusercontent.com/yunusserhat/Github/main/data/londonborough.geojson'
44
+
45
+ m.add_geojson(borough, layer_name='London Boroughs')
46
+ m.add_points_from_xy(
47
+ tweets,
48
+ x="longitude",
49
+ y="latitude"
50
+ # ,
51
+ # color_column='hate_pred',
52
+ # icon_names=['gear', 'map', 'leaf', 'globe'],
53
+ # spin=True,
54
+ # add_legend=True,
55
+ )
56
+ m.to_streamlit(height=700)
pages/1_📍_Marker_Cluster.py DELETED
@@ -1,41 +0,0 @@
1
- import streamlit as st
2
- import leafmap.foliumap as leafmap
3
-
4
- st.set_page_config(layout="wide")
5
-
6
- st.sidebar.info(
7
- """
8
- - Web App URL: <https://huggingface.co/spaces/yunusserhat/Crime-Map>
9
- - HuggingFace repository: <https://huggingface.co/spaces/yunusserhat/Crime-Map/tree/main>
10
- """
11
- )
12
-
13
- st.sidebar.title("Contact")
14
- st.sidebar.info(
15
- """
16
- Yunus Serhat Bıçakçı at [yunusserhat.com](https://yunusserhat.com) | [GitHub](https://github.com/yunusserhat) | [Twitter](https://twitter.com/yunusserhat) | [LinkedIn](https://www.linkedin.com/in/yunusserhat)
17
- """
18
- )
19
-
20
- st.title("Marker Cluster")
21
-
22
- with st.expander("See source code"):
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
- # ,
35
- # color_column='hate_pred',
36
- # icon_names=['gear', 'map', 'leaf', 'globe'],
37
- # spin=True,
38
- # add_legend=True,
39
- )
40
- m
41
- m.to_streamlit(height=700)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
pages/{2_🔥_Heatmap.py → 1_🔥_Heatmap.py} RENAMED
File without changes