Thursday, April 16, 2020

Gis For Digital Maps


Turf is a JavaScript library which allows digital maps to implement many mutual GIS functions. Using Turf digital maps tin perform geospatial processing tasks amongst GeoJSON data. Turf connects to Leaflet, in addition to is also directly available every bit a Mapbox.js plugin.

You tin teach a groovy overview of the make of Turf's geospatial processing capabilities on the Turf examples page. Using the library amongst Leaflet in addition to Mapbox is rattling easy. It took me less than xv minutes to set-up this map of central London constabulary stations. I grabbed the GeoJSON information for the stations using Overpass Turbo in addition to hence but used the html for the turf-nearest example inward the Turf documentation.

The map shows the nearest London constabulary station to a for certain point. The queried place is pre-determined inward this map but it should hold upwards a uncomplicated chore to brand the marking of the queried place draggable. Turf tin procedure the geospatial enquiry inward the browser hence it should hold upwards uncomplicated to allow users to enquiry the map to abide by the nearest constabulary station to whatever location.

No comments:

Post a Comment