Skip to content

Commit

Permalink
Merge pull request #2032 from loopmediagroup/dev
Browse files Browse the repository at this point in the history
[Gally]: master <- dev
  • Loading branch information
simlu committed Oct 20, 2023
2 parents 69fd38f + 167d3f3 commit ced94f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/resources/field-definitions.js
Expand Up @@ -46,10 +46,10 @@ export default {
{
marshall: (vs) => (
Array.isArray(vs) && vs.length !== 0
? vs.map((v) => ({ type: 'Polygon', coordinates: v }))
? { type: 'Multipolygon', coordinates: vs }
: null
),
unmarshall: (vs) => (vs !== null ? vs.map(({ coordinates }) => coordinates) : null)
unmarshall: (vs) => (vs !== null ? vs.coordinates : null)
}
),
datetime: mkFn({ type: 'date', format: "yyyy-MM-dd'T'HH:mm:ss.SSSX" }),
Expand Down
12 changes: 6 additions & 6 deletions test/remaps/geo-types.json
Expand Up @@ -196,10 +196,10 @@
]
]
},
"polys": [
{
"type": "Polygon",
"coordinates": [
"polys": {
"type": "Multipolygon",
"coordinates": [
[
[
[
-119.4923403,
Expand Down Expand Up @@ -231,8 +231,8 @@
]
]
]
}
],
]
},
"timezone": "America/Vancouver",
"keywords": [
"kw1",
Expand Down

0 comments on commit ced94f2

Please sign in to comment.