From fe4f135b92b2a9e35900b5bbe1e7e99716829e39 Mon Sep 17 00:00:00 2001 From: Matteo Rosati Date: Wed, 11 Feb 2026 22:16:55 +0100 Subject: [PATCH] add cursor style --- db.sqlite3 | Bin 204800 -> 204800 bytes frontend/static/frontend/css/base.css | 57 ++++++++++++++---- frontend/static/frontend/ts/main.ts | 10 +-- .../templates/frontend/partials/header.html | 2 +- 4 files changed, 52 insertions(+), 17 deletions(-) diff --git a/db.sqlite3 b/db.sqlite3 index 1bdde28f020a373d2c88b69b97f4818ce81cc751..1b98b9cb6142b9a6364a437c25eebfefed3362c6 100644 GIT binary patch delta 268 zcmZoTz|(MmXM!~2vWYUzjLSAA_~i4Lnphc{=@}T97#f;SPRtYEd_Lb)frF9nHUr;n zzLd?13K4vhQ|8qxRGJl-q~;iwR;K2rSsLc$r>0kAS7s+w73L>pnp75-PG+9JCDg;! zz{(}6B)}uYt-#aN)gwsPAh#;pI9=B%P}k5qJj@`)!pz7b+sq@xKRF`T#K^$NOxM6j z*T_`C$iNEj5_1a^E(Qh$M*cet{CD`bZx(D=%|ChjdQF0EXxgxC10#zA2P6L@2L4C< Yhk-h`^G`qgpV1KEO`zc|OiP#*0HpR-DgXcg delta 268 zcmZoTz|(MmXM!~2;)ycOjEgrW_~i2#7+V=y>X}=Zm|2=lPRtYEd_Lb)frCMSfr0Nf zU&>}hg$TaMDf8+T@~bS3&2kIU(<`&e3QF?LO%2P8lg%x%%MwdWOG~mXCo|9A66zk9 zVU<>yZQxqyXOv%>8CBx$TI`!uQeIM#7*!RXpIzY=5LA*HQeshPS{RY!X=GqzrfXoN zYh { @@ -29,13 +26,16 @@ map.on("load", () => { }); if (features && features.length > 0) { - const hoveredId = features[0].id; + const feature = features[0]; + const hoveredId = feature.id; if (hoveredId) { map.setFilter("buildings-highlight", ["==", ["id"], hoveredId]); + map.getCanvas().style.cursor = "pointer"; } } else { map.setFilter("buildings-highlight", ["==", ["id"], ""]); + map.getCanvas().style.cursor = ""; } }); }); diff --git a/frontend/templates/frontend/partials/header.html b/frontend/templates/frontend/partials/header.html index 7a5ac4d..fc138e8 100644 --- a/frontend/templates/frontend/partials/header.html +++ b/frontend/templates/frontend/partials/header.html @@ -3,7 +3,7 @@
{% if user.is_authenticated %} - {{ user.profile.display_name|default:user.get_username }} + Welcome, {{ user.profile.display_name|default:user.get_username }} Logout {% else %}