📄 Fix map attribution
This commit is contained in:
parent
05dcc0bd5c
commit
20517dfe56
@ -20,10 +20,10 @@
|
||||
[icon]="viewSettings ? 'pi pi-times' : 'pi pi-cog'" />
|
||||
</div>
|
||||
|
||||
<div class="absolute z-30 bottom-2 right-2">
|
||||
<div class="absolute z-30 bottom-4 right-2">
|
||||
<div class="relative group flex flex-col-reverse items-end h-28">
|
||||
<div
|
||||
class="absolute right-0 bottom-16 p-2 bg-white shadow rounded transition-all duration-200 opacity-0 pointer-events-none group-hover:opacity-100 group-hover:pointer-events-auto">
|
||||
class="absolute right-0 bottom-20 p-2 bg-white shadow rounded transition-all duration-200 opacity-0 pointer-events-none group-hover:opacity-100 group-hover:pointer-events-auto">
|
||||
<p-button (click)="batchAddModal()" text severity="secondary" icon="pi pi-ellipsis-v" />
|
||||
</div>
|
||||
|
||||
|
||||
@ -29,7 +29,6 @@ export function createMap(contextMenuItems?: ContextMenuItem[]): L.Map {
|
||||
zoomControl: false,
|
||||
contextmenu: true,
|
||||
contextmenuItems: _contextMenuItems,
|
||||
attributionControl: false,
|
||||
} as MapOptions)
|
||||
.setZoom(10)
|
||||
.setMaxBounds(bounds);
|
||||
@ -37,6 +36,8 @@ export function createMap(contextMenuItems?: ContextMenuItem[]): L.Map {
|
||||
L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
|
||||
maxZoom: 17,
|
||||
minZoom: 5,
|
||||
attribution:
|
||||
'© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
||||
}).addTo(map);
|
||||
|
||||
return map;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user