0

After trying turf.js with plain ole leaflet and getting confused because the most basic stuff wouldn't work, I'm thinking that turf.js requires Mapbox.js and access token. Can anyone confirm or deny this??

If this is the case, I have either totally overlooked it on the turf github and the turf API site, or that information is nowhere to be found, which is kind of annoying.

3
  • For what I know...this should not require Mapbox.js nor the token. I'm interested in also knowing this. If it depends on Mapbox infrastructure...well. Feb 19, 2015 at 17:43
  • I wouldn't think so either... I've got to look in to it more.
    – Tangnar
    Feb 19, 2015 at 18:10
  • We're happy to help with any turf-related questions on the issue tracker if you can provide code examples of what's not working with Leaflet.
    – tmcw
    Mar 1, 2015 at 23:39

3 Answers 3

10

Turf.js is not dependent on Mapbox.js or access token. I was initially confused with the documentation, I think, but it works fine with plain leaflet.js.

6

Turf has no visualization dependencies at all. It does not require any map display, and works with raw GeoJSON data. For example, I often use Turf on my desktop (via Node.js) for running analysis that outputs the results to files I open in QGIS. The code runs 100% on your machine, so there are no access tokens or servers involved anywhere in the process.

1

Turf.js does not require Mapbox map or Mapbox access token. It can be intergrated well with leaflet, which I have tried and it worked. Also it can be integrated with ArcGIS JS API too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.