refactor icon and default marker image paths, wrap library in a function

This commit is contained in:
mourner
2012-05-10 17:03:50 +03:00
parent be647f1b20
commit 6f40aeeb97
4 changed files with 59 additions and 38 deletions

View File

@ -107,8 +107,9 @@
var path = getSrcUrl();
for (var i = 0; i < scripts.length; i++) {
document.writeln("<script type='text/javascript' src='" + path + "../src/" + scripts[i] + "'></script>");
document.writeln("<script src='" + path + scripts[i] + "'></script>");
}
document.writeln('<script>L.Icon.Default.imagePath = "' + path + '../dist/images";</script>');
})();
function getRandomLatLng(map) {