Select to view content in your preferred language

Buffer Widget 1.0 05/16/2018

4334
2
05-16-2018 04:46 AM
Labels (1)

Buffer Widget 1.0 05/16/2018

Hi all,

 

Just developed a Buffer Widget (WAB 2.8) using Turf.js

 

Visit my Github for more information

 

Live Demo

I build Esri widgets without any -economic- interest, if you find it useful for your projects, you can buy me a coffee  

https://ko-fi.com/adrisolid

Don't hesitate to contact me if you need some custom developments: biotekgis@gmail.com

Cheers!

Labels (1)
Attachments
Comments
PabloIzquierdo1
New Contributor III

How do you add it to the WAB, specifically, I'm having problem adding turf

Adri2cPérez_Beneito
Occasional Contributor

First of all, hi.

You have several ways to link a third party library to a WAB app. You can directly link the cdn to the index.html or add it in your main js widget file in the require section (think whether you want to set the library globally or locally in a widget). Now, the correct way using Dojo: go to init.js file, 'resources' var, and add the following: window.path + 'libs/turf/turf.min.js'. In my case I downloaded Turf.js. That's up to you.

Cheers

Version history
Last update:
‎05-16-2018 04:46 AM
Updated by:
Contributors