Create an HTML file (in this example libraries/turf.html
) with the library you want to load:
<script src="../../bower_components/turf/turf.min.js"></script>
Import the HTML file (libraries/turf.html
) in your component with the rest of your imports:
<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../libraries/turf.html">
Invoke your library (example usage):
var point = turf.point([42.123123, -23.83839]);