Skip to content

JSON.parse #20

Description

@reyemtm

I was having a few issues where the coordinates were not coming in as an array but rather as raw values. To fix this I changed line 144

geom.coordinates = JSON.parse(item[val]);

Also, in one case I am pulling data from a google sheet where the fields point, line and polygon all exist, so I added a test for any values first before building the array of points - line 142

if(item[val] && typeof val === 'string' && item.hasOwnProperty(val)) {

Hoping these can be added to the source. Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions