Update app.py
Browse files
app.py
CHANGED
|
@@ -385,9 +385,17 @@ def flight_tracking(flight_view_level, country, local_time_zone, flight_info, ai
|
|
| 385 |
location=[loc_box[0], loc_box[1]],
|
| 386 |
zoom_start=6,
|
| 387 |
tiles='CartoDB dark_matter',
|
| 388 |
-
|
| 389 |
)
|
| 390 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 391 |
# Create colormap
|
| 392 |
if color == "rainbow":
|
| 393 |
colormap = cm.LinearColormap(
|
|
|
|
| 385 |
location=[loc_box[0], loc_box[1]],
|
| 386 |
zoom_start=6,
|
| 387 |
tiles='CartoDB dark_matter',
|
| 388 |
+
control_scale=True
|
| 389 |
)
|
| 390 |
|
| 391 |
+
# Remove grid lines by adding a custom tile layer
|
| 392 |
+
folium.TileLayer(
|
| 393 |
+
tiles='https://{s}.basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}{r}.png',
|
| 394 |
+
attr='© OpenStreetMap contributors © CARTO',
|
| 395 |
+
name='No Labels',
|
| 396 |
+
show=True
|
| 397 |
+
).add_to(m)
|
| 398 |
+
|
| 399 |
# Create colormap
|
| 400 |
if color == "rainbow":
|
| 401 |
colormap = cm.LinearColormap(
|