π§ Datastar + Leaflet Demo
The Datastar-powered Map shows how you can build interactive, data-driven maps in Craft CMS β without relying on any JavaScript framework. Using Datastar, the map dynamically updates markers, filters, and clusters based on live CMS data β all rendered directly in Twig.
β‘ Reactive without React
Every interaction β like filtering by category or selecting an item from the list β triggers a lightweight Datastar patch request that updates only whatβs needed. No reloads, no heavy frontend stack β just instant feedback.
πΊοΈ Powered by Leaflet.js
Leaflet handles map rendering while Datastar manages reactivity. The result is a setup that stays fast, accessible, and fully server-rendered.
π― Perfect for:
directories β’ location listings β’ event maps β’ or any project using dynamic geodata β all without leaving the comfort of Craft + Twig.
β¨ In short: a modern, dynamic map experience β built purely with Craft CMS, Leaflet, and Datastar.