From a6acef6abe1195a7929ed478be4aa7ef92ddd693 Mon Sep 17 00:00:00 2001 From: "arnaud.morvan@camptocamp.com" Date: Mon, 27 Jan 2020 15:49:25 +0100 Subject: [PATCH] Fix geometry test in ol style --- c2cgeoform/static/src/styles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c2cgeoform/static/src/styles.js b/c2cgeoform/static/src/styles.js index cfa9d55f..f53e4328 100644 --- a/c2cgeoform/static/src/styles.js +++ b/c2cgeoform/static/src/styles.js @@ -26,7 +26,7 @@ export const defaultStyle = new Style({ export function getStyleFunction(options) { const cache = {} return feature => { - if (feature.getGeometry().getType() == 'Point') { + if (feature.getGeometry().getType() != 'Point') { return defaultStyle } const src = feature.get('icon') || options.icon || defaultIconUrl