heatmap added

This commit is contained in:
HolgerHatGarKeineNode
2023-02-08 01:00:29 +01:00
parent 6e8c722a0f
commit bef0e6bc25
2 changed files with 4 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ class Heatmap extends Component
]); ]);
return view('livewire.book-case.heatmap', [ return view('livewire.book-case.heatmap', [
'heatmap_data' => $data, 'heatmap_data' => $data->toArray(),
]); ]);
} }
} }

View File

@@ -1,10 +1,10 @@
<div class="bg-21gray flex flex-col h-screen justify-between"> <div class="bg-21gray h-screen justify-between">
<livewire:frontend.header :country="$country"/> <livewire:frontend.header :country="$country"/>
{{-- MAIN --}} {{-- MAIN --}}
<section class="w-full mb-12"> <section class="w-full mb-12">
<div class="max-w-screen-2xl mx-auto px-2 sm:px-10"> <div class="max-w-screen-2xl mx-auto px-2 sm:px-10">
<h1 class="font-bold dark:text-white"> <h1 class="text-xl font-bold py-4 text-gray-200">
{{ __('Orange Pill Heatmap') }} {{ __('Orange Pill Heatmap') }}
</h1> </h1>
@@ -13,7 +13,7 @@
data: @js($heatmap_data), data: @js($heatmap_data),
init() { init() {
const map = L.map($refs.map).setView([50.5, 30.5], 8); const map = L.map($refs.map).setView([51.1642,10.4541194], 6);
L.tileLayer.provider('Stamen.Toner').addTo(map); L.tileLayer.provider('Stamen.Toner').addTo(map);