clickable markers

This commit is contained in:
Benjamin Takats
2022-12-15 15:24:42 +01:00
parent 4984adac00
commit ad657a54a9
3 changed files with 28 additions and 0 deletions

View File

@@ -25,6 +25,9 @@
map: '{{ $country->code }}_merc',
backgroundColor: 'transparent',
markers: markers.map(function(h){ return {name: h.name, latLng: h.coords} }),
onMarkerClick: function(event, index) {
$wire.call('filterByMarker', markers[index].id)
},
markerStyle: {
initial: {
image: '{{ asset('img/btc.png') }}',