https://github.com/dpmcmlxxvi/olturf
A Turf toolbar for OpenLayers.
https://github.com/dpmcmlxxvi/olturf
algorithm geospatial gis javascript ol3-turf openlayers toolbar turf
Last synced: about 1 month ago
JSON representation
A Turf toolbar for OpenLayers.
- Host: GitHub
- URL: https://github.com/dpmcmlxxvi/olturf
- Owner: dpmcmlxxvi
- License: mit
- Created: 2017-01-09T02:30:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-05T05:46:17.000Z (over 3 years ago)
- Last Synced: 2025-03-31T09:17:50.944Z (about 2 months ago)
- Topics: algorithm, geospatial, gis, javascript, ol3-turf, openlayers, toolbar, turf
- Language: JavaScript
- Homepage: https://dpmcmlxxvi.github.io/olturf/
- Size: 3.92 MB
- Stars: 31
- Watchers: 4
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# OpenLayers Turf
[](https://github.com/dpmcmlxxvi/olturf/actions)
[](https://coveralls.io/r/dpmcmlxxvi/olturf?branch=master)
[](https://www.codacy.com/gh/dpmcmlxxvi/olturf/dashboard?utm_source=github.com&utm_medium=referral&utm_content=dpmcmlxxvi/olturf&utm_campaign=Badge_Grade)
[](https://badge.fury.io/js/olturf)[OpenLayers Turf](https://github.com/dpmcmlxxvi/olturf) (olturf) is a
[Turf](http://turfjs.org/) toolbar for [OpenLayers](http://openlayers.org/).
The toolbar provides the following features:- **Customizable** commands to display
- **Forms** to collect command inputs
- **Popups** to display numerical outputs
- **Input** features are selected in the map
- **Output** features are displayed in the mapInstead of displaying all the Turf commands available, individual commands can
be selected or a subset of pre-defined groups can be displayed. The following
groups are available `aggregation`, `classification`, `data`, `grids`,
`interpolation`, `measurement`, `misc`, `joins`, `transformation`.
## GETTING STARTED
A toolbar can be added to an OpenLayers map by adding its dependencies
```html
```
then creating an instance and adding it to the map
```javascript
const toolbar = new olturf.Toolbar();
const map = new ol.Map({...});
map.addControl(toolbar);
```## DOCUMENTATION
The following help is available at the olturf
[website](http://dpmcmlxxvi.github.io/olturf):- [Introduction](http://dpmcmlxxvi.github.io/olturf/web/)
- [Getting Started](http://dpmcmlxxvi.github.io/olturf/web/start.html)
- [Examples](http://dpmcmlxxvi.github.io/olturf/web/demos.html)
- [API](http://dpmcmlxxvi.github.io/olturf/api/)## BUILD
To build and test the library locally:
```shell
npm install
npm test
```The bundled library and stylesheet are at `dist/olturf.min.js` and
`dist/olturf.min.css`.## LICENSE
Copyright (c) 2016 Daniel Pulido
Source code is released under the [MIT License](http://opensource.org/licenses/MIT).
Documentation is released under the [CC BY 4.0](http://creativecommons.org/licenses/by-sa/4.0/).
Icons are from [OSGeo](http://trac.osgeo.org/osgeo/wiki) and released under the
[CC BY 3.0](http://creativecommons.org/licenses/by-sa/3.0/).