See the code (map.py)
"""
Day 1 · Points
The prompt: A map challenge classic. Map with points.
What I'm mapping: Kissing gates in the UK
"""
from pathlib import Path
import folium
import geopandas as gpd
from mapkit import palette as P
from mapkit.folium_style import add_basemap, style_map
HERE = Path(__file__).parent # this day's folder
DATA = HERE / "data" # put the data files you download in here
m = folium.Map(location=[52.27682333479622, -0.8992581486344269], zoom_start=6, tiles=None)
add_basemap(m, "osm") # background map: also "light-nolabels", "dark", "osm", "mapbox"
style_map(m) # the site's font + ink-outlined buttons
gpd = gpd.read_file(DATA / "kissing_gates.geojson")
#print(gpd.describe()) # gives a summary of the numeric columns, does not say much about the text columns.
#print(len(gpd)) #how many gates there are.
#print(gpd.columns) #the names of all 157 columns.
#print(gpd.head()) #the first 5 rows of the data, to see what it looks like.
for _, row in gpd.iterrows():
folium.CircleMarker(
location=[row["geometry"].y, row["geometry"].x],
radius=5,
color=P.INK,
weight=1,
fill_color=P.categorical(1),
fill_opacity=0.7,
tooltip=row["id"], # replace with a column that makes sense for your data
popup=f"Gate ID: {row['id']}" # replace with a column that makes sense for your data
).add_to(m)
m.save(HERE / "map.html")
print("Saved", HERE / "map.html")