ybendou commited on
Commit
37c5d6f
1 Parent(s): 062d91e
Files changed (1) hide show
  1. src/utils.py +4 -4
src/utils.py CHANGED
@@ -121,11 +121,11 @@ def init_map():
121
  ).add_to(m)
122
 
123
  # Satellite View from Mapbox
124
- tileurl = "https://api.mapbox.com/styles/v1/phd2020/clmer2mra01d001pbgjkictpt/tiles/256/{z}/{x}/{y}@2x?access_token=pk.eyJ1IjoicGhkMjAyMCIsImEiOiJja29lZzFwZmUwNHkzMm5wMjZnYjVvcGltIn0.tE0ritrelQOyLdKUH6hgOw"
125
  folium.TileLayer(
126
  tiles=tileurl,
127
- attr="Satellite View",
128
- name="Satellite View | عرض القمر الصناعي",
129
  overlay=False,
130
  control=True,
131
  ).add_to(m)
@@ -135,7 +135,7 @@ def init_map():
135
  add_danger_distances_to_map(m)
136
 
137
  # Add a LayerControl to the map to toggle between layers (Satellite View and Default One)
138
- folium.LayerControl().add_to(m)
139
 
140
  # Macro to add legend
141
  m.get_root().add_child(legend_macro)
 
121
  ).add_to(m)
122
 
123
  # Satellite View from Mapbox
124
+ tileurl = "https://marocmap.ikiker.com/maroc/{z}/{x}/{y}.png"
125
  folium.TileLayer(
126
  tiles=tileurl,
127
+ attr="Maroc Map",
128
+ name="Maroc Map",
129
  overlay=False,
130
  control=True,
131
  ).add_to(m)
 
135
  add_danger_distances_to_map(m)
136
 
137
  # Add a LayerControl to the map to toggle between layers (Satellite View and Default One)
138
+ #folium.LayerControl().add_to(m)
139
 
140
  # Macro to add legend
141
  m.get_root().add_child(legend_macro)