GSMEthesis commited on
Commit
7355935
·
verified ·
1 Parent(s): 5d4147f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -996,17 +996,18 @@ def enhanced_likert_scale(question_data):
996
 
997
 
998
  def create_ride_map():
999
- origin = [35.7665280, 51.3300394]
1000
- destination = [35.7552343, 51.4204264]
1001
  purple = "#6a0dad"
1002
 
 
1003
  m = folium.Map(location=[(origin[0] + destination[0]) / 2,
1004
  (origin[1] + destination[1]) / 2], zoom_start=13)
1005
 
1006
  # آیکون مبدأ
1007
  origin_icon = folium.CustomIcon(
1008
- icon_image='https://upload.wikimedia.org/wikipedia/commons/thumb/7/71/Map_marker_icon_%E2%80%93_Nicolas_Mollet_%E2%80%93_Purple_map_marker.svg/1024px-Map_marker_icon_%E2%80%93_Nicolas_Mollet_%E2%80%93_Purple_map_marker.svg.png',
1009
- icon_size=(30, 30)
1010
  )
1011
  folium.Marker(
1012
  location=origin,
@@ -1016,8 +1017,8 @@ def create_ride_map():
1016
 
1017
  # آیکون مقصد
1018
  destination_icon = folium.CustomIcon(
1019
- icon_image='https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/Purple_flag_icon.svg/512px-Purple_flag_icon.svg.png',
1020
- icon_size=(30, 30)
1021
  )
1022
  folium.Marker(
1023
  location=destination,
@@ -1025,7 +1026,7 @@ def create_ride_map():
1025
  tooltip="مقصد: پل طبیعت"
1026
  ).add_to(m)
1027
 
1028
- # خط مسیر
1029
  folium.PolyLine(
1030
  [origin, destination],
1031
  color=purple,
 
996
 
997
 
998
  def create_ride_map():
999
+ origin = [35.7665280, 51.3300394] # پونک شمالی
1000
+ destination = [35.7552343, 51.4204264] # پل طبیعت
1001
  purple = "#6a0dad"
1002
 
1003
+ # ساخت نقشه
1004
  m = folium.Map(location=[(origin[0] + destination[0]) / 2,
1005
  (origin[1] + destination[1]) / 2], zoom_start=13)
1006
 
1007
  # آیکون مبدأ
1008
  origin_icon = folium.CustomIcon(
1009
+ icon_image='origin.png',
1010
+ icon_size=(40, 40)
1011
  )
1012
  folium.Marker(
1013
  location=origin,
 
1017
 
1018
  # آیکون مقصد
1019
  destination_icon = folium.CustomIcon(
1020
+ icon_image='destination.png',
1021
+ icon_size=(40, 40)
1022
  )
1023
  folium.Marker(
1024
  location=destination,
 
1026
  tooltip="مقصد: پل طبیعت"
1027
  ).add_to(m)
1028
 
1029
+ # خط مسیر بنفش
1030
  folium.PolyLine(
1031
  [origin, destination],
1032
  color=purple,