Route progress
Real road directions with a vehicle that follows :progress. Bind it to Livewire state or tween it with one event.
MapLibre maps for Laravel Livewire. Markers, routes, arcs, GeoJSON and 3D that react to your component state. No JavaScript required.
Everything you need
Each card below is a live map rendered by the package, mounted only when it scrolls into view.
Real road directions with a vehicle that follows :progress. Bind it to Livewire state or tween it with one event.
Labels, tooltips and popups as nested tags. Click a pin.
Zones, boundaries and choropleths with hover states.
Thousands of points, grouped and expandable.
A three-d toggle and extruded buildings.
Livewire-native
Click a city: the button calls a Livewire action on the server, which dispatches map:fly-to. Markers, routes and layers re-render in place when your properties change, and the camera stays put.
public function fly(string $city) { $this->city = $city; $this->dispatch('map:fly-to', center: $this->cities[$city]['center'], zoom: 11.5, ); }
How it works
composer require kwasii/livewire-mapcn
MapLibre, styles and the runtime are served for you.
@livewireMapStyles @livewireMapScripts
One line in your <head>, one before </body>.
<x-map :center="[$lng, $lat]"> <x-map-marker ... /> </x-map>
Bind props to Livewire state. That's it.
MIT licensed. Laravel 11–13, Livewire 3 & 4, MapLibre 6.