!function(t){var o={};function n(e){if(o[e])return o[e].exports;var i=o[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=o,n.d=function(t,o,e){n.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:e})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(o,"a",o),o},n.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},n.p="",n(n.s=0)}([function(t,o){LeafletWidget.methods.addControlGPS=function(t){(function(){var o=this;o.gpscontrol&&(o.gpscontrol.removeFrom(o),delete o.gpscontrol),o.gpscontrol=new L.Control.Gps(t),o.gpscontrol.on("gps:located",function(t){HTMLWidgets.shinyMode&&Shiny.onInputChange(o.id+"_gps_located",{coordinates:t.latlng,radius:t.marker._radius})}),o.gpscontrol.on("gps:disabled",function(t){HTMLWidgets.shinyMode&&Shiny.onInputChange(o.id+"_gps_disabled",{})}),o.gpscontrol.addTo(o)}).call(this)},LeafletWidget.methods.removeControlGPS=function(){(function(){this.gpscontrol&&(this.gpscontrol.removeFrom(this),delete this.gpscontrol)}).call(this)},LeafletWidget.methods.activateGPS=function(){(function(){this.gpscontrol&&this.gpscontrol.activate()}).call(this)},LeafletWidget.methods.deactivateGPS=function(){(function(){this.gpscontrol&&this.gpscontrol.deactivate()}).call(this)},LeafletWidget.methods.getLocation=function(){return function(){if(this.gpscontrol)return this.gpscontrol.getLocation();throw"GPS Control not added to the map"}.call(this)}}]);
//# sourceMappingURL=lfx-gps-bindings.js.map