Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load and Display H3-JS binned dataset in Mapbox #173

Closed
sharmapn opened this issue Feb 12, 2023 · 1 comment
Closed

Load and Display H3-JS binned dataset in Mapbox #173

sharmapn opened this issue Feb 12, 2023 · 1 comment

Comments

@sharmapn
Copy link

Hello,

I have a website that uses h3-js to bin the points. Then I call a function that counts the number of points in each of the hexagons after the binning and embeds these as attributes within the geoJSON. See #162
Then I save the geoJSON to disk.

Now, I would like add a feature on my website that allows a user (who has received the binned dataset) to load the binned geoJSON and display the binned points in a mapbox (or Openlayers) map canvas. I was not able to find an example on the web that allows mapbox read the binned data from the geojosn and display it on a mapbox canvas.

Any assistance on this would be greatly appreciated.

@sharmapn sharmapn changed the title Load and Display H3 binned dataset in Mapbox Load and Display H3-JS binned dataset in Mapbox Feb 12, 2023
@nrabinowitz
Copy link
Collaborator

I'm afraid this isn't really an H3 question, if I understand correctly - at this point, you've already done the H3 work and you just need to show GeoJSON data on a Mapbox map with values in the GeoJSON properties. This isn't really the right forum for this question - I'd suggest asking on StackOverflow or in a Mapbox help forum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants