Skip to Content

JavaScript File

URL: https://unpkg.com/leaflet@1.7.1/dist/leaflet.js
HTTP Status: 200 OK
MIME Type: application/javascript
Last Modified: Sat, 26 Oct 1985 08:15:00 GMT
Download Time: Less than a second
Cookies: None
Size: 139 KB
HTTP Headers:  16 headers
Links In:  1 pages
  
OK Issues: No issues found

1/* @preserve

2 * Leaflet 1.7.1, a JS library for interactive maps. http://leafletjs.com

3 * (c) 2010-2019 Vladimir Agafonkin, (c) 2010-2011 CloudMade

4 */

5!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i(t.L={}

6)}

7(this,function(t){"use strict";function h(t){for(var i,e,n=1,o=arguments.length;n<o;n++)for(i in e=arguments[n])t[i]=e[i];return t}

8var s=Object.create||function(t){return i.prototype=t,new i}

9;function i(){}

10function p(t,i){var e=Array.prototype.slice;if(t.bind)return t.bind.apply(t,e.call(arguments,1));var n=e.call(arguments,2);return function(){return t.apply(i,n.length?n.concat(e.call(arguments)):arguments)}

11}

12var e=0;function m(t){return t._leaflet_id=t._leaflet_id||++e,t._leaflet_id}

13function n(t,i,e){var n,o,s=function(){n=!1,o&&(r.apply(e,o),o=!1)}

14,r=function(){n?o=arguments:(t.apply(e,arguments),setTimeout(s,i),n=!0)}

15;return r}

16function o(t,i,e){var n=i[1],o=i[0],s=n-o;return t===n&&e?t:((t-o)%s+s)%s+o}

17function a(){return!1}

18function r(t,i){var e=Math.pow(10,void 0===i?6:i);return Math.round(t*e)/e}

19function u(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}

20function l(t){return u(t).split(/\s+/)}

21function c(t,i){for(var e in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?s(t.options):{}

22),i)t.options[e]=i[e];return t.options}

23function _(t,i,e){var n=[];for(var o in t)n.push(encodeURIComponent(e?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(i&&-1!==i.indexOf("?")?"&":"?")+n.join("&")}

24var d=/\{ *([\w_-]+) *\}

25/g;function f(t,n){return t.replace(d,function(t,i){var e=n[i];if(void 0===e)throw new Error("No value provided for variable "+t);return"function"==typeof e&&(e=e(n)),e}

26)}

27var g=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}

28;function v(t,i){for(var e=0;e<t.length;e++)if(t[e]===i)return e;return-1}

29var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function x(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}

30var w=0;function P(t){var i=+new Date,e=Math.max(0,16-(i-w));return w=i+e,window.setTimeout(t,e)}

31var b=window.requestAnimationFrame||x("RequestAnimationFrame")||P,T=window.cancelAnimationFrame||x("CancelAnimationFrame")||x("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)}

32;function M(t,i,e){if(!e||b!==P)return b.call(window,p(t,i));t.call(i)}

33function z(t){t&&T.call(window,t)}

34var C={extend:h,create:s,bind:p,lastId:e,stamp:m,throttle:n,wrapNum:o,falseFn:a,formatNum:r,trim:u,splitWords:l,setOptions:c,getParamString:_,template:f,isArray:g,indexOf:v,emptyImageUrl:y,requestFn:b,cancelFn:T,requestAnimFrame:M,cancelAnimFrame:z}

35;function S(){}

36S.extend=function(t){function i(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}

37var e=i.__super__=this.prototype,n=s(e);for(var o in(n.constructor=i).prototype=n,this)Object.prototype.hasOwnProperty.call(this,o)&&"prototype"!==o&&"__super__"!==o&&(i[o]=this[o]);return t.statics&&(h(i,t.statics),delete t.statics),t.includes&&(function(t){if("undefined"==typeof L||!L||!L.Mixin)return;t=g(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}

38(t.includes),h.apply(null,[n].concat(t.includes)),delete t.includes),n.options&&(t.options=h(s(n.options),t.options)),h(n,t),n._initHooks=[],n.callInitHooks=function(){if(!this._initHooksCalled){e.callInitHooks&&e.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,i=n._initHooks.length;t<i;t++)n._initHooks[t].call(this)}

39}

40,i}

...

</html>