mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
map for events
This commit is contained in:
@@ -28,8 +28,11 @@ class BitcoinEventTable extends Component
|
||||
->with([
|
||||
'venue.city.country',
|
||||
])
|
||||
->where(fn($query) => $query
|
||||
->whereHas('venue.city.country',
|
||||
fn($query) => $query->where('countries.code', $this->country->code))
|
||||
fn($query) => $query->where('code', $this->country->code))
|
||||
->orWhere('show_worldwide', true)
|
||||
)
|
||||
->get()
|
||||
->map(fn($event) => [
|
||||
'id' => $event->id,
|
||||
|
||||
1
public/vendor/jvector/maps/europe-merc.js
vendored
Normal file
1
public/vendor/jvector/maps/europe-merc.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -15,6 +15,7 @@
|
||||
media="screen"/>
|
||||
<script src="https://unpkg.com/jquery"></script>
|
||||
<script src="{{ asset('vendor/jvector/jquery-jvectormap-2.0.5.min.js') }}"></script>
|
||||
<script src="{{ asset('vendor/jvector/maps/europe-merc.js') }}"></script>
|
||||
<script src="{{ asset('vendor/jvector/maps/de.js') }}"></script>
|
||||
<script src="{{ asset('vendor/jvector/maps/at.js') }}"></script>
|
||||
<script src="{{ asset('vendor/jvector/maps/ch.js') }}"></script>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
media="screen"/>
|
||||
<script src="https://unpkg.com/jquery"></script>
|
||||
<script src="{{ asset('vendor/jvector/jquery-jvectormap-2.0.5.min.js') }}"></script>
|
||||
<script src="{{ asset('vendor/jvector/maps/europe-merc.js') }}"></script>
|
||||
<script src="{{ asset('vendor/jvector/maps/de.js') }}"></script>
|
||||
<script src="{{ asset('vendor/jvector/maps/at.js') }}"></script>
|
||||
<script src="{{ asset('vendor/jvector/maps/ch.js') }}"></script>
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
$('#map').vectorMap({
|
||||
zoomButtons : false,
|
||||
zoomOnScroll: true,
|
||||
map: '{{ $country->code }}_merc',
|
||||
map: 'europe_merc',
|
||||
backgroundColor: 'transparent',
|
||||
markers: markers.map(function(h){ return {name: h.name, latLng: h.coords} }),
|
||||
onMarkerClick: function(event, index) {
|
||||
@@ -110,7 +110,7 @@
|
||||
}
|
||||
}"
|
||||
>
|
||||
<div id="map" style="width: 100%; height: 400px"></div>
|
||||
<div id="map" style="width: 100%; height: 800px"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user