mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
f55e93cabe
commit
bb506edcc3
1 changed files with 9 additions and 0 deletions
|
|
@ -41,6 +41,15 @@
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
map = L.map(mapElement).setView(setViewLocation ? setViewLocation : [51.505, -0.09], 10);
|
map = L.map(mapElement).setView(setViewLocation ? setViewLocation : [51.505, -0.09], 10);
|
||||||
|
|
||||||
|
if (setViewLocation) {
|
||||||
|
points = [
|
||||||
|
{
|
||||||
|
coords: setViewLocation,
|
||||||
|
content: `Lat: ${setViewLocation[0]}, Lng: ${setViewLocation[1]}`
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||||
attribution:
|
attribution:
|
||||||
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue