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