aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-rw-r--r--src/js/main.js4
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,