View laravel-hotwire on GitHub
1M
v0.91.0
Search 71 components and 72 controllers by name, category or description.
Map
Leaflet map with OpenStreetMap tiles, inline markers or GeoJSON and automatic fitting
GeoJSON URL
Fetch markers from an endpoint.
<hw:map url="/api/locations" height="500px" />
Single marker
<hw:map :center="[-23.55, -46.63]" :markers="[[-23.55, -46.63, 'São Paulo']]" />
Multiple markers
Disable scroll-wheel zoom when embedding maps inside dense pages.
<hw:map
:markers="[
[-23.5505, -46.6333, 'São Paulo'],
[-22.9068, -43.1729, 'Rio de Janeiro'],
[-30.0346, -51.2177, 'Porto Alegre'],
]"
:scroll-wheel-zoom="false"
class="z-10 h-96"
/>