e3d255bb1bf631d118191e9c30ecc9bc54bad841.svn-base 775 Bytes
var toolIdMaC = "";
//获取工具插件ID
var fileName = "importMaC.js";
var isLoadMaC = false;
var scripts = document.getElementsByTagName("script");
for (var i = 0; i < scripts.length; i++) {

    var src = scripts[i].src;
    if (src.indexOf(fileName) !== -1) {
        src = src.substring(src.lastIndexOf(fileName
+ "?") + (fileName.length + 1));
        var array = src.split("&");
        for (var j = 0; j < array.length; j++) {
            var finalObj = array[j].split("=");
            if (finalObj[j] == "toolId")
                toolIdMaC = finalObj[j + 1]; //iD
        }
    }
}

loadjscssfile("/lib/styleMaC.css", "css", toolIdMaC);
loadjscssfile("/lib/MarkCluster.js", "js", toolIdMaC); //ID
loadjscssfile("/js/MarkClusterinit.js", "js", toolIdMaC); //ID