mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
work
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user