2010-09-23 20:56:29 +08:00
|
|
|
/**
|
|
|
|
* @preserve Copyright (c) 2010, CloudMade
|
|
|
|
* Leaflet is a BSD-licensed JavaScript library for map display and interaction.
|
|
|
|
* Check out the source on GitHub: http://github.com/CloudMade/Leaflet/
|
2010-09-07 19:27:44 +08:00
|
|
|
*/
|
|
|
|
|
2010-09-23 22:18:51 +08:00
|
|
|
var L = {
|
2010-09-17 16:01:49 +08:00
|
|
|
VERSION: '0.0.2',
|
2010-09-07 19:27:44 +08:00
|
|
|
|
2010-09-17 00:38:58 +08:00
|
|
|
ROOT_URL: (function() {
|
|
|
|
var scripts = document.getElementsByTagName('script');
|
|
|
|
for (var i = 0, len = scripts.length; i < len; i++) {
|
|
|
|
var src = scripts[i].src,
|
|
|
|
res = src && src.match(/^(.*\/)leaflet-*\w*\.js.*$/);
|
|
|
|
if (res && res[1]) { return res[1]; }
|
|
|
|
}
|
|
|
|
return '../dist/';
|
|
|
|
})(),
|
2010-09-07 19:27:44 +08:00
|
|
|
|
|
|
|
noConflict: function() {
|
2010-09-23 22:25:35 +08:00
|
|
|
L = this._originalL;
|
2010-09-07 19:27:44 +08:00
|
|
|
return this;
|
2010-09-17 00:38:58 +08:00
|
|
|
},
|
|
|
|
|
2010-09-23 22:25:35 +08:00
|
|
|
_originalL: L
|
2010-09-07 19:27:44 +08:00
|
|
|
};
|