Turf.js is a JavaScript library for client-side programming
It includes a set of functions for geoprocessing tasks
The basic data type that turf.js works with is GeoJSON
Turf.js is a JavaScript library for client-side programming
It includes a set of functions for geoprocessing tasks
The basic data type that turf.js works with is GeoJSON
To use the library in a web page, import it from CDN https://cdnjs.../turf.min.js
using script
element
Leaflet needs coordinates as [[lat0, lon0], [lat1, lon1]] form
Turf.js needs coordinates as [lon0, lat0, lon1, lat1] form
Bitbucket: Turf.js - turf.greatCircle function
Home: Turf.js - turf.greatCircle function
Queries about this Lesson, please send them to:
*References*
- Google Maps; Power Tools for Maximizing the API, 2014
Evangelos Petroutsos
- D3 Tips and Tricks; Interactive Data Visualization in a Web Browser, 2013
Malcolm Maclean
- Interactive Data Visualization for the Web, 2013
Scott Murray
- Web Programming with HTML5, CSS, and JavaScript, 2019
John Dean
- Leaflet Documentation
Leaflet Team
- Google Documentation for developers
Google Team
Courtesy of …