var convert2geojson=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){"use strict";var n={};n.Input=o(1),n.Map=o(6),n.Init=o(7),n.Add=o(9),n.Reset=o(8).resetView,n.Set=o(8).setPlace,t.exports=n},function(t,e,o){"use strict";var n=o(2),r=o(4),i=o(5);t.exports=function(t,e,o,l){var s=n.extname(e).replace(".",""),a="";switch(s){case"json":a=r(JSON.parse(t),o,l);break;case"csv":a=i(t,o,l);break;default:console.log("Can not convert this type. If you need to convert to this type, you can open issue in here['https://github.com/HsuTing/convert2geojson/issues'].")}return a}},function(t,e,o){(function(t){"use strict";function o(t,e){for(var o=0,n=t.length-1;n>=0;n--){var r=t[n];"."===r?t.splice(n,1):".."===r?(t.splice(n,1),o++):o&&(t.splice(n,1),o--)}if(e)for(;o--;o)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var o=[],n=0;n=-1&&!r;i--){var l=i>=0?arguments[i]:t.cwd();if("string"!=typeof l)throw new TypeError("Arguments to path.resolve must be strings");l&&(e=l+"/"+e,r="/"===l.charAt(0))}return e=o(n(e.split("/"),function(t){return!!t}),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),i="/"===l(t,-1);return t=o(n(t.split("/"),function(t){return!!t}),!r).join("/"),t||r||(t="."),t&&i&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,o){function n(t){for(var e=0;e=0&&""===t[o];o--);return e>o?[]:t.slice(e,o-e+1)}t=e.resolve(t).substr(1),o=e.resolve(o).substr(1);for(var r=n(t.split("/")),i=n(o.split("/")),l=Math.min(r.length,i.length),s=l,a=0;l>a;a++)if(r[a]!==i[a]){s=a;break}for(var u=[],a=s;ae&&(e=t.length+e),t.substr(e,o)}}).call(e,o(3))},function(t,e){"use strict";function o(){u=!1,l.length?a=l.concat(a):c=-1,a.length&&n()}function n(){if(!u){var t=setTimeout(o);u=!0;for(var e=a.length;e;){for(l=a,a=[];++c1)for(var o=1;o
";else{for(var s in o.title)i+=""+o.title[s]+(""==o.title[s]?"":": ")+l[s]+"
";for(var s in o.content)i+=""+o.content[s]+(""==o.content[s]?"":": ")+l[s]+"
"}(new mapboxgl.Popup).setLngLat(e.lngLat).setHTML(i).addTo(t)}})})};t.exports=function(t,e,n){for(var r in n){var i=Object.keys(n[r])[0],l=n[r][i];void 0==e?o(t,l.data,l,i):!function(){var i=Object.keys(n[r])[0],l=e.replace("[name]",i),s=n[r][i];$.getJSON(l,function(e){o(t,e,s,i)})}()}}}]);