Erweitern Sie die Folium-Kartengröße auf MobilgerätenPython

Python-Programme
Guest
 Erweitern Sie die Folium-Kartengröße auf Mobilgeräten

Post by Guest »

Ich erstelle eine Web-App mit Django und Folium. Ich habe eine Navigationsleiste und eine Folium-Karte auf der Webseite. Es funktioniert gut auf Computern und Geräten mit Querformat-Bildschirm, aber auf Geräten mit Hochformat-Bildschirm hat die Karte einen freien Platz.
Mein Code für die Karte:

Code: Select all

current_map = folium.Map(location=start_location, zoom_start=6)
fig = branca.element.Figure(height="100%")
fig.add_child(current_map)
context = {"current_map": current_map._repr_html_()}
return render(request, template_name="index.html", context=context)
index.html

Code: Select all







{{ current_map | safe }}


Wie fülle ich es aus?
[img]https://i.sstatic.net /S8WAv.jpg[/img]

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post