2 * @preserve Copyright (c) 2010-2011, CloudMade, Vladimir Agafonkin
3 * Leaflet is a BSD-licensed JavaScript library for map display and interaction.
4 * See http://cloudmade.github.com/Leaflet/ for more information.
11 ROOT_URL
: (function() {
12 var scripts
= document
.getElementsByTagName('script'),
13 leafletRe
= /^(.*\/)leaflet-?([\w-]*)\.js.*$/;
14 for (var i
= 0, len
= scripts
.length
; i
< len
; i
++) {
15 var src
= scripts
[i
].src
,
16 res
= src
&& src
.match(leafletRe
);
19 if (res
[2] == 'include') break;
26 noConflict: function() {
27 root
.L
= this._originalL
;