diff --git a/resources/views/livewire/meetup/meetup-event-table.blade.php b/resources/views/livewire/meetup/meetup-event-table.blade.php index ce248bae..3a1b7cd2 100644 --- a/resources/views/livewire/meetup/meetup-event-table.blade.php +++ b/resources/views/livewire/meetup/meetup-event-table.blade.php @@ -79,6 +79,12 @@
+ @php + $map = $country->code . '_merc'; + if (!\File::exists(public_path('vendor/jvector/maps/' . $country->code . '.js'))) { + $map = 'europe_merc'; + } + @endphp
code }}_merc', + map: '{{ $map }}', backgroundColor: 'transparent', markers: markers.map(function(h){ return {name: h.name, latLng: h.coords} }), onMarkerClick: function(event, index) { diff --git a/resources/views/livewire/meetup/meetup-table.blade.php b/resources/views/livewire/meetup/meetup-table.blade.php index aeebdeae..299abd88 100644 --- a/resources/views/livewire/meetup/meetup-table.blade.php +++ b/resources/views/livewire/meetup/meetup-table.blade.php @@ -12,6 +12,12 @@

Finde Bitcoiner in deiner Stadt und lerne sie auf einem der Meetups kennen.

+ @php + $map = $country->code . '_merc'; + if (!\File::exists(public_path('vendor/jvector/maps/' . $map . '.js'))) { + $map = 'europe-merc'; + } + @endphp
code }}_merc', + map: '{{ $map }}', backgroundColor: 'transparent', markers: markers.map(function(h){ return {name: h.name, latLng: h.coords} }), onMarkerClick: function(event, index) {