💄 Reduce map minimum zoom

This commit is contained in:
itskovacs 2025-07-31 19:13:06 +02:00
parent cae1399c1c
commit d3a64f6967

View File

@ -2,7 +2,6 @@ import * as L from "leaflet";
import "leaflet.markercluster"; import "leaflet.markercluster";
import "leaflet-contextmenu"; import "leaflet-contextmenu";
import { Place } from "../types/poi"; import { Place } from "../types/poi";
import { TripItem } from "../types/trip";
export interface ContextMenuItem { export interface ContextMenuItem {
text: string; text: string;
@ -38,7 +37,7 @@ export function createMap(contextMenuItems?: ContextMenuItem[]): L.Map {
"https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png", "https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png",
{ {
maxZoom: 17, maxZoom: 17,
minZoom: 5, minZoom: 3,
attribution: attribution:
'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, &copy; <a href="https://carto.com/attributions">CARTO</a>', '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, &copy; <a href="https://carto.com/attributions">CARTO</a>',
}, },