mirror of
https://github.com/rastapasta/mapscii.git
synced 2024-11-24 17:13:57 +01:00
After ESLint in Styler
This commit is contained in:
parent
804b55076d
commit
8673da8ecb
@ -105,9 +105,9 @@ class Styler {
|
|||||||
});
|
});
|
||||||
case '==':
|
case '==':
|
||||||
return (feature) => feature.properties[filter[1]] === filter[2];
|
return (feature) => feature.properties[filter[1]] === filter[2];
|
||||||
case "!=":
|
case '!=':
|
||||||
return (feature) => feature.properties[filter[1]] !== filter[2];
|
return (feature) => feature.properties[filter[1]] !== filter[2];
|
||||||
case "in":
|
case 'in':
|
||||||
return (feature) => !!filter.slice(2).find((value) => {
|
return (feature) => !!filter.slice(2).find((value) => {
|
||||||
return feature.properties[filter[1]] === value;
|
return feature.properties[filter[1]] === value;
|
||||||
});
|
});
|
||||||
@ -115,17 +115,17 @@ class Styler {
|
|||||||
return (feature) => !filter.slice(2).find((value) => {
|
return (feature) => !filter.slice(2).find((value) => {
|
||||||
return feature.properties[filter[1]] === value;
|
return feature.properties[filter[1]] === value;
|
||||||
});
|
});
|
||||||
case "has":
|
case 'has':
|
||||||
return (feature) => !!feature.properties[filter[1]];
|
return (feature) => !!feature.properties[filter[1]];
|
||||||
case "!has":
|
case '!has':
|
||||||
return (feature) => !feature.properties[filter[1]];
|
return (feature) => !feature.properties[filter[1]];
|
||||||
case ">":
|
case '>':
|
||||||
return (feature) => feature.properties[filter[1]] > filter[2];
|
return (feature) => feature.properties[filter[1]] > filter[2];
|
||||||
case ">=":
|
case '>=':
|
||||||
return (feature) => feature.properties[filter[1]] >= filter[2];
|
return (feature) => feature.properties[filter[1]] >= filter[2];
|
||||||
case "<":
|
case '<':
|
||||||
return (feature) => feature.properties[filter[1]] < filter[2];
|
return (feature) => feature.properties[filter[1]] < filter[2];
|
||||||
case "<=":
|
case '<=':
|
||||||
return (feature) => feature.properties[filter[1]] <= filter[2];
|
return (feature) => feature.properties[filter[1]] <= filter[2];
|
||||||
default:
|
default:
|
||||||
return () => true;
|
return () => true;
|
||||||
|
Loading…
Reference in New Issue
Block a user