mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-27 09:15:29 +01:00
Tidy function.
This commit is contained in:
parent
0705522a24
commit
52e8b21b3d
1 changed files with 6 additions and 1 deletions
|
@ -19,7 +19,12 @@ function isZoomField(value) {
|
|||
typeof(value.property) === 'undefined' &&
|
||||
Array.isArray(value.stops) &&
|
||||
value.stops.length > 1 &&
|
||||
value.stops.every(stop => Array.isArray(stop) && stop.length === 2)
|
||||
value.stops.every(stop => {
|
||||
return (
|
||||
Array.isArray(stop) &&
|
||||
stop.length === 2
|
||||
);
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue