!function(e){var t={};function o(r){if(t[r])return t[r].exports;var l=t[r]={i:r,l:!1,exports:{}};return e[r].call(l.exports,l,l.exports,o),l.l=!0,l.exports}o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t){LeafletWidget.methods.addGeodesicPolylines=function(e,t,o,r,l,n,a,i,c){if(e.length>0){var s=(new LeafletWidget.DataFrame).col("shapes",e).col("layerId",t).col("group",o).col("popup",l).col("popupOptions",n).col("label",a).col("labelOptions",i).col("highlightOptions",c).cbind(r);LeafletWidget.methods.addGenericLayers(this,"shape",s,function(e,t){for(var o=e.get(t,"shapes"),r=[],l=0;l<o.length;l++)for(var n=0;n<o[l].length;n++)r.push(HTMLWidgets.dataframeToD3(o[l][n]));return L.geodesic(r,e.get(t))})}},LeafletWidget.methods.addGreatCircles=function(e,t,o,r,l,n,a,i,c,s,d){if(!$.isEmptyObject(e)&&!$.isEmptyObject(t)||$.isNumeric(e)&&$.isNumeric(t)){var u=(new LeafletWidget.DataFrame).col("lat",e).col("lng",t).col("radius",o).col("layerId",r).col("group",l).col("popup",a).col("popupOptions",i).col("label",c).col("labelOptions",s).col("highlightOptions",d).cbind(n),p=this;LeafletWidget.methods.addGenericLayers(this,"shape",u,function(e,t){var o=e.get(t),r=L.geodesic([],o),l=L.marker([e.get(t,"lat"),e.get(t,"lng")]);return p.on("layeradd",function(e){e.layer===r&&l.addTo(p)}),p.on("layerremove",function(e){e.layer===r&&p.removeLayer(l)}),r.createCircle([e.get(t,"lat"),e.get(t,"lng")],e.get(t,"radius")),r})}}}]);
//# sourceMappingURL=lfx-geodesic-bindings.js.map