From 23c3623bda77a4601cfec3dfd7d9961b7d4fb83c Mon Sep 17 00:00:00 2001 From: Jakub Hampl Date: Fri, 13 Jul 2018 16:26:15 +0100 Subject: Various small fixes --- src/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/js') diff --git a/src/js/main.js b/src/js/main.js index ce720ca..255396e 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -121,7 +121,7 @@ function wrapElmApplication(elmApp, settings = {}) { const keys = Object.keys(prevValue); let newValue = {}; keys.forEach(k => { - if (state[k] === undefined) { + if (state[k] === undefined ) { newValue[k] = undefined; } }); @@ -343,7 +343,7 @@ function wrapElmApplication(elmApp, settings = {}) { type: "queryRenderedFeatures", id: event.requestId, features: - event.query === "viewport" + event.query ? map.queryRenderedFeatures(processOptions(event.options)) : map.queryRenderedFeatures( event.query, -- cgit v1.2.3