This commit is contained in:
Zsolt Ero
2025-10-22 13:00:43 +02:00
parent f2161e868d
commit f12ffcb032

View File

@@ -28,7 +28,7 @@ map.on('load', () => {
syncInputsFromParams() syncInputsFromParams()
applyConfiguration() applyConfiguration()
initializeInputListeners() initializeInputListeners()
// initializeModal() initializeModal()
}) })
// ============================================ // ============================================
@@ -36,7 +36,7 @@ map.on('load', () => {
// ============================================ // ============================================
function initializeInputListeners() { function initializeInputListeners() {
const debouncedApplyConfig = debounce(applyConfiguration, 1000) const debouncedApplyConfig = debounce(applyConfiguration, 500)
const handleInput = () => { const handleInput = () => {
updateParamsFromInputs() updateParamsFromInputs()
@@ -82,7 +82,7 @@ function applyConfiguration() {
line2Config: line2 ?? '', line2Config: line2 ?? '',
langCode: lang || 'en', langCode: lang || 'en',
}) })
map.setStyle(style, { diff: false }) map.setStyle(style, { diff: true })
} }
function syncInputsFromParams() { function syncInputsFromParams() {