mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
osm data
This commit is contained in:
@@ -697,5 +697,6 @@
|
||||
"no location set": "kein Ort gesetzt",
|
||||
"Open on Youtube": "Auf Youtube öffnen",
|
||||
"You do not have permission to view the page.": "Du hast keine Berechtigung, die Seite anzuzeigen.",
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "Bitte kontaktiere die Administratoren für neue Dateitypen, ansonsten packe die Dateien in ein ZIP! (Derzeit: PDF, ZIP)"
|
||||
}
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "Bitte kontaktiere die Administratoren für neue Dateitypen, ansonsten packe die Dateien in ein ZIP! (Derzeit: PDF, ZIP)",
|
||||
"load more...": ""
|
||||
}
|
||||
@@ -691,5 +691,6 @@
|
||||
"no location set": "",
|
||||
"Open on Youtube": "",
|
||||
"You do not have permission to view the page.": "",
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
|
||||
}
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "",
|
||||
"load more...": ""
|
||||
}
|
||||
@@ -691,5 +691,6 @@
|
||||
"no location set": "no hay ubicación establecida",
|
||||
"Open on Youtube": "Abrir en Youtube",
|
||||
"You do not have permission to view the page.": "No tienes permiso para ver la página.",
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "Si deseas nuevos tipos de archivo, pónte en contacto con los administradores; de lo contrario, envíe los archivos en un ZIP. (Actualmente: PDF, ZIP)"
|
||||
}
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "Si deseas nuevos tipos de archivo, pónte en contacto con los administradores; de lo contrario, envíe los archivos en un ZIP. (Actualmente: PDF, ZIP)",
|
||||
"load more...": ""
|
||||
}
|
||||
@@ -692,5 +692,6 @@
|
||||
"no location set": "",
|
||||
"Open on Youtube": "",
|
||||
"You do not have permission to view the page.": "",
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "",
|
||||
"load more...": ""
|
||||
}
|
||||
@@ -692,5 +692,6 @@
|
||||
"no location set": "",
|
||||
"Open on Youtube": "",
|
||||
"You do not have permission to view the page.": "",
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "",
|
||||
"load more...": ""
|
||||
}
|
||||
@@ -692,5 +692,6 @@
|
||||
"no location set": "",
|
||||
"Open on Youtube": "",
|
||||
"You do not have permission to view the page.": "",
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "",
|
||||
"load more...": ""
|
||||
}
|
||||
@@ -692,5 +692,6 @@
|
||||
"no location set": "",
|
||||
"Open on Youtube": "",
|
||||
"You do not have permission to view the page.": "",
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "",
|
||||
"load more...": ""
|
||||
}
|
||||
@@ -692,5 +692,6 @@
|
||||
"no location set": "",
|
||||
"Open on Youtube": "",
|
||||
"You do not have permission to view the page.": "",
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "",
|
||||
"load more...": ""
|
||||
}
|
||||
@@ -692,5 +692,6 @@
|
||||
"no location set": "",
|
||||
"Open on Youtube": "",
|
||||
"You do not have permission to view the page.": "",
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "",
|
||||
"load more...": ""
|
||||
}
|
||||
@@ -666,5 +666,6 @@
|
||||
"no location set": "",
|
||||
"Open on Youtube": "",
|
||||
"You do not have permission to view the page.": "",
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
|
||||
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "",
|
||||
"load more...": ""
|
||||
}
|
||||
24
resources/views/columns/meetups/osm-actions.blade.php
Normal file
24
resources/views/columns/meetups/osm-actions.blade.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<div class="flex flex-col space-y-1">
|
||||
<div>
|
||||
@if($row->osm_relation)
|
||||
has OSM relation
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
population {{ $row->population }}
|
||||
</div>
|
||||
<div>
|
||||
@if($row->population_date)
|
||||
population date {{ $row->population_date }}
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
<x-button
|
||||
xs
|
||||
amber
|
||||
:href="route('osm.meetups.item', ['meetup' => $row])"
|
||||
>
|
||||
Open OSM Item
|
||||
</x-button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -29,6 +29,7 @@
|
||||
<script src="{{ asset('vendor/jvector/maps/pl.js') }}"></script>
|
||||
<script src="https://kit.fontawesome.com/03bc14bd1e.js" crossorigin="anonymous"></script>
|
||||
<script src="{{ asset('dist/smoothscroll.js') }}"></script>
|
||||
@mapstyles
|
||||
@mapscripts
|
||||
<wireui:scripts/>
|
||||
<x-comments::scripts/>
|
||||
@@ -37,7 +38,6 @@
|
||||
<x-comments::styles/>
|
||||
<x-embed-styles />
|
||||
@livewireStyles
|
||||
@mapstyles
|
||||
<style>
|
||||
.comments {
|
||||
--comments-color-background: rgb(34, 34, 34);
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
<div class="p-6 w-full" wire:loading.class="opacity-50">
|
||||
|
||||
<div class="max-w-none text-white flex flex-col space-y-4">
|
||||
<a href="{{ route('osm.meetups') }}">Zurück</a>
|
||||
<div class="grid grid-cols-2 gap-2">
|
||||
<div>
|
||||
<h1>Search city: {{ $meetup->city->name }}</h1>
|
||||
<h1>OSM API Response</h1>
|
||||
<div class="flex flex-col space-y-2">
|
||||
@foreach($osmSearchResults as $item)
|
||||
<code class="w-full">
|
||||
<div wire:key="osmItemCity_{{ $loop->index }}" class="cursor-pointer underline" wire:click="selectItem({{ $loop->index }})">
|
||||
{{ $item['display_name'] }}
|
||||
</div>
|
||||
</code>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h1>Search state: {{ $meetup->city->name }}</h1>
|
||||
<h1>OSM API Response</h1>
|
||||
<div class="flex flex-col space-y-2">
|
||||
@foreach($osmSearchResultsState as $item)
|
||||
<code class="w-full">
|
||||
<div wire:key="osmItemState_{{ $loop->index }}" class="cursor-pointer underline" wire:click="selectItem({{ $loop->index }}, true)">
|
||||
{{ $item['display_name'] }}
|
||||
</div>
|
||||
</code>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
@if($selectedItem)
|
||||
geojson created
|
||||
@endif
|
||||
</div>
|
||||
<h1>Current data [points: {{ count($meetup->city->simplified_geojson['coordinates'][0] ?? []) }}]</h1>
|
||||
<div class="flex space-x-2">
|
||||
<div class="cursor-pointer font-bold underline" wire:click="setPercent(7)">7%</div>
|
||||
<div class="cursor-pointer font-bold underline" wire:click="setPercent(6)">6%</div>
|
||||
<div class="cursor-pointer font-bold underline" wire:click="setPercent(5)">5%</div>
|
||||
<div class="cursor-pointer font-bold underline" wire:click="setPercent(4)">4%</div>
|
||||
<div class="cursor-pointer font-bold underline" wire:click="setPercent(3)">3%</div>
|
||||
<div class="cursor-pointer font-bold underline" wire:click="setPercent(2)">2%</div>
|
||||
<div class="cursor-pointer font-bold underline" wire:click="setPercent(1)">1%</div>
|
||||
<div class="cursor-pointer font-bold underline" wire:click="setPercent(0.75)">0.75%</div>
|
||||
<div class="cursor-pointer font-bold underline" wire:click="setPercent(0.5)">0.5%</div>
|
||||
</div>
|
||||
<div>
|
||||
@if($meetup->city->simplified_geojson)
|
||||
<h1>Simplified geojson</h1>
|
||||
<pre
|
||||
class="overflow-x-auto py-4">{{ json_encode($meetup->city->simplified_geojson, JSON_THROW_ON_ERROR) }}</pre>
|
||||
<div
|
||||
class="my-4"
|
||||
x-data="{
|
||||
init() {
|
||||
var map = L.map($refs.map)
|
||||
.setView([{{ $meetup->city->longitude }}, {{ $meetup->city->latitude }}], 13);
|
||||
|
||||
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
|
||||
|
||||
var geojsonFeature = {
|
||||
'type': 'Feature',
|
||||
'geometry': @js($meetup->city->simplified_geojson)
|
||||
};
|
||||
console.log(geojsonFeature);
|
||||
L.geoJSON(geojsonFeature).addTo(map);
|
||||
let geoJSON = L.geoJson(geojsonFeature).addTo(map);
|
||||
map.fitBounds(geoJSON.getBounds());
|
||||
}
|
||||
}">
|
||||
<div x-ref="map" style="width: 80vw; height: 30vh;"></div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="flex flex-col">
|
||||
@if($meetup->city->osm_relation)
|
||||
<code>
|
||||
osm_id: {{ $meetup->city->osm_relation['osm_id'] }}
|
||||
</code>
|
||||
<code>
|
||||
display_name: {{ $meetup->city->osm_relation['display_name'] }}
|
||||
</code>
|
||||
@endif
|
||||
</div>
|
||||
<h1>Wikipedia Search Results</h1>
|
||||
<div class="flex space-x-2">
|
||||
@foreach($wikipediaSearchResults['results']['bindings'] ?? [] as $pop)
|
||||
<div wire:key="pop_{{ $loop->index }}" class="cursor-pointer underline font-bold" wire:click="takePop({{ $pop['population']['value'] }})">
|
||||
population: {{ number_format($pop['population']['value']) }}
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<h1>DB population</h1>
|
||||
<code>
|
||||
population: {{ $meetup->city->population }}
|
||||
</code>
|
||||
<code>
|
||||
population date: {{ $meetup->city->population_date }}
|
||||
</code>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class="p-6">
|
||||
<livewire:tables.meetup-for-btc-map-table/>
|
||||
</div>
|
||||
Reference in New Issue
Block a user