In-browser geospatial data in Python
Building a web application using Pyscript and Folium
packages = [
"folium",
"pandas"
]
# import the library
import folium
# Make an empty map
#m = folium.Map(location=[20,0], tiles="OpenStreetMap", zoom_start=2) #Weltkarte
#m = folium.Map(location=[52.3127, 13.0261], zoom_start=12, tiles="cartodb positron")
m = folium.Map(location=[52.3127, 13.0261], zoom_start=12, tiles="OpenStreetMap.DE")
folium.Marker(
location=[52.3127, 13.0261],
tooltip="Klick mich!",
popup="Getränke Rößler",
icon=folium.Icon(icon="cloud"),
).add_to(m)
folium.Marker(
location=[52.3129, 13.0215],
tooltip="Klick mich!",
popup="Grundschule Michendorf",
icon=folium.Icon(color="green"),
).add_to(m)
# Show the map
m