blob: 750a4a5f5877ad316c519aa12b76b76804183695 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/**
* @preserve Copyright (c) 2010-2011, CloudMade, Vladimir Agafonkin
* Leaflet is a BSD-licensed JavaScript library for map display and interaction.
* See http://cloudmade.github.com/Leaflet/ for more information.
*/
(function(root) {
var L = {
VERSION: '0.2',
ROOT_URL: (function() {
var scripts = document.getElementsByTagName('script'),
leafletRe = /^(.*\/)leaflet-?([\w-]*)\.js.*$/;
for (var i = 0, len = scripts.length; i < len; i++) {
var src = scripts[i].src,
res = src && src.match(leafletRe);
if (res) {
if (res[2] == 'include') break;
return res[1];
}
}
return '../../dist/';
})(),
noConflict: function() {
root.L = this._originalL;
return this;
},
_originalL: root.L
};
window.L = L;
}(this));
|