uber / h3-js

h3-js provides a JavaScript version of H3, a hexagon-based geospatial indexing system.
https://uber.github.io/h3
Apache License 2.0
875 stars 79 forks source link

Export the JS tutorials as plain Javascript #112

Closed 2xlbu4u closed 3 years ago

2xlbu4u commented 3 years ago

Extracting the h3 code from the Observables workbooks has been brutal. All my existing code uses jQuery so having just plain HTML, Javascript examples would save a lot of time

nrabinowitz commented 3 years ago

I'm willing to include some examples in the library, but they'd probably be just JS - I don't think it makes sense to add HTML with a map or other visualization, as those are not part of the library and would likely vary widely between consumers. What examples are you looking for that aren't easy to extract from Observable?

2xlbu4u commented 3 years ago

Nick,

Thanks for the response.

Once putting it through a beautifier, I was able to extract the parts that build and manipulate the layers so I'm all set. I'm not used to E6 level JS so it was difficult at first.

Regards -John

On Wed, Apr 7, 2021 at 6:39 PM Nick Rabinowitz @.***> wrote:

I'm willing to include some examples in the library, but they'd probably be just JS - I don't think it makes sense to add HTML with a map or other visualization, as those are not part of the library and would likely vary widely between consumers. What examples are you looking for that aren't easy to extract from Observable?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/uber/h3-js/issues/112#issuecomment-815307126, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2COAVZ6J7PT5WZGFBBF6DTHTNINANCNFSM42O47HEQ .

nrabinowitz commented 3 years ago

OK, closing this for now if this is primarily about usage in maps - there are lots of different approaches here, and I don't think including them in this repo is the right move, as they'd be hard to test and keep up to date.