collect by hexgrid has the same properties #1340
Comments
Hi @mysisi Which version of turf are you using? I did resolve this bug although the patch is currently only available in v6 with the standalone module. The bundled turf is still running as v5 and so the patch hasn't been incorporated yet. Cheers |
I'm using mapbox-gl-js/v0.44.1 and running into the same issue where all properties are the same for hexgrids. |
Hi @hw2312 The same question for you as above - what version of turf/hexgrid are you using? |
@rowanwins I've been using the CDN script [EDIT]
Would you have any suggestions on how to resolve this? Thanks! |
@rowanwins using the latest version 5.1.6 |
When using a single module in a browser application people are typically using them via a build tool like webpack, these build tools compile all the dependencies and make them browser ready. There are some fairly simple instructions on the getting started pages for how to generate a custom built browser-ready script using browserify (see section titled 'Creating custom builds for use in the browser'). Give those instructions a while and let me know how you get on |
im using like this:
when you log collected you will see the feature properties collect will always be the same as the first feature properties. |
hey, i have some trouble with collect api, when the first argument is a feature collection created from hexgrid, the result features have the same outProperty, triangleGrid or squareGrid are ok...
The text was updated successfully, but these errors were encountered: