diff options
author | Jakub Hampl <kopomir@gmail.com> | 2018-07-13 16:26:15 +0100 |
---|---|---|
committer | Jakub Hampl <kopomir@gmail.com> | 2018-07-13 16:26:15 +0100 |
commit | 23c3623bda77a4601cfec3dfd7d9961b7d4fb83c (patch) | |
tree | be73de4926df482396ba8d9f2c5f6000f5552f3d /src/js | |
parent | cc6d143dd8124e13059c26125e70237795e9a9a4 (diff) |
Various small fixes
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
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, |