geocoder can search outside map boundaries, prioritizes results inside map boundaries

This commit is contained in:
2026-04-19 16:36:37 +02:00
parent adc2b71eb7
commit e459a86edb

View File

@@ -124,7 +124,7 @@ L.Control.geocoder({
countrycodes: 'de', countrycodes: 'de',
viewbox: (MUNICIPALITY.center[1] - 0.3) + ',' + (MUNICIPALITY.center[0] - 0.2) + ',' + viewbox: (MUNICIPALITY.center[1] - 0.3) + ',' + (MUNICIPALITY.center[0] - 0.2) + ',' +
(MUNICIPALITY.center[1] + 0.3) + ',' + (MUNICIPALITY.center[0] + 0.2), (MUNICIPALITY.center[1] + 0.3) + ',' + (MUNICIPALITY.center[0] + 0.2),
bounded: 1 bounded: 0,
} }
}) })
}).addTo(map); }).addTo(map);