Skip to content

Commit

Permalink
Fix geometry test in ol style
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-morvan committed Jan 27, 2020
1 parent 44797cd commit a6acef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2cgeoform/static/src/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6acef6

Please sign in to comment.