Files
contao-leaflet-libraries/assets/leaflet-omnivore/leaflet-omnivore.min.js

2 lines
27 KiB
JavaScript
Raw Normal View History

2016-11-25 09:36:15 +01:00
!function(r){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.omnivore=r()}}(function(){var r;return function r(e,t,n){function o(u,a){if(!t[u]){if(!e[u]){var s="function"==typeof require&&require;if(!a&&s)return s(u,!0);if(i)return i(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var c=t[u]={exports:{}};e[u][0].call(c.exports,function(r){var t=e[u][1][r];return o(t?t:r)},c,c.exports,r,e,t,n)}return t[u].exports}for(var i="function"==typeof require&&require,u=0;u<n.length;u++)o(n[u]);return o}({1:[function(r,e,t){function n(r,e){"setGeoJSON"in r?r.setGeoJSON(e):"addData"in r&&r.addData(e)}function o(r,e,t){var o=t||L.geoJson();return y(r,function(r,e){return r?o.fire("error",{error:r}):(n(o,JSON.parse(e.responseText)),void o.fire("ready"))}),o}function i(r,e,t){function n(r,t){return r?o.fire("error",{error:r}):(l(t.responseText,e,o),void o.fire("ready"))}var o=t||L.geoJson();return y(r,n),o}function u(r,e,t){function n(r,t){function n(){i=!0}var i;return r?o.fire("error",{error:r}):(o.on("error",n),p(t.responseText,e,o),o.off("error",n),void(i||o.fire("ready")))}var o=t||L.geoJson();return y(r,n),o}function a(r,e,t){function n(r,t){function n(){i=!0}var i;return r?o.fire("error",{error:r}):(o.on("error",n),h(t.responseXML||t.responseText,e,o),o.off("error",n),void(i||o.fire("ready")))}var o=t||L.geoJson();return y(r,n),o}function s(r,e,t){function n(r,t){function n(){i=!0}var i;return r?o.fire("error",{error:r}):(o.on("error",n),g(t.responseXML||t.responseText,e,o),o.off("error",n),void(i||o.fire("ready")))}var o=t||L.geoJson();return y(r,n),o}function f(r,e,t){function n(r,t){return r?o.fire("error",{error:r}):(v(t.responseText,e,o),void o.fire("ready"))}var o=t||L.geoJson();return y(r,n),o}function c(r,e,t){function n(r,t){return r?o.fire("error",{error:r}):(d(t.responseText,e,o),void o.fire("ready"))}var o=t||L.geoJson();return y(r,n),o}function l(r,e,t){var o="string"==typeof r?JSON.parse(r):r;t=t||L.geoJson();for(var i in o.objects){var u=S.feature(o,o.objects[i]);u.features?n(t,u.features):n(t,u)}return t}function p(r,e,t){function o(r,e){return r?t.fire("error",{error:r}):void n(t,e)}return t=t||L.geoJson(),e=e||{},x.csv2geojson(r,e,o),t}function h(r,e,t){var o=m(r);if(!o)return t.fire("error",{error:"Could not parse GPX"});t=t||L.geoJson();var i=T.gpx(o);return n(t,i),t}function g(r,e,t){var o=m(r);if(!o)return t.fire("error",{error:"Could not parse KML"});t=t||L.geoJson();var i=T.kml(o);return n(t,i),t}function d(r,e,t){t=t||L.geoJson(),e=e||{};for(var o=E.decode(r,e.precision),i={type:"LineString",coordinates:[]},u=0;u<o.length;u++)i.coordinates[u]=[o[u][1],o[u][0]];return n(t,i),t}function v(r,e,t){t=t||L.geoJson();var o=w(r);return n(t,o),t}function m(r){return"string"==typeof r?(new DOMParser).parseFromString(r,"text/xml"):r}var y=r("corslite"),x=r("csv2geojson"),w=r("wellknown"),E=r("polyline"),S=r("topojson"),T=r("togeojson");e.exports.polyline=c,e.exports.polyline.parse=d,e.exports.geojson=o,e.exports.topojson=i,e.exports.topojson.parse=l,e.exports.csv=u,e.exports.csv.parse=p,e.exports.gpx=a,e.exports.gpx.parse=h,e.exports.kml=s,e.exports.kml.parse=g,e.exports.wkt=f,e.exports.wkt.parse=v},{corslite:4,csv2geojson:5,polyline:8,togeojson:9,topojson:10,wellknown:11}],2:[function(r,e,t){},{}],3:[function(r,e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(r){if(l===setTimeout)return setTimeout(r,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(r,0);try{return l(r,0)}catch(e){try{return l.call(null,r,0)}catch(e){return l.call(this,r,0)}}}function u(r){if(p===clearTimeout)return clearTimeout(r);if((p===o||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(r);try{return p(r)}catch(e){try{return p.call(null,r)}catch(e){return p.call(this,r)}}}function a(){v&&g&&(v=!1