You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

93 lines
2.5 KiB

function init() {
var script=document.createElement("script");
script.type="text/javascript";
script.src= ctx + "/js/gis/init.js";//你要加载的js路径
document.getElementsByTagName('head')[0].appendChild(script);
}
function tool() {
var script=document.createElement("script");
script.type="text/javascript";
script.src= ctx + "/js/gis/tool.js";//你要加载的js路径
document.getElementsByTagName('head')[0].appendChild(script);
}
function model() {
var script=document.createElement("script");
script.type="text/javascript";
script.src= ctx + "/js/gis/model.js";//你要加载的js路径
document.getElementsByTagName('head')[0].appendChild(script);
}
function work() {
var script=document.createElement("script");
script.type="text/javascript";
script.src= ctx + "/js/gis/work.js";//你要加载的js路径
document.getElementsByTagName('head')[0].appendChild(script);
}
function bubble() {
var script=document.createElement("script");
script.type="text/javascript";
script.src= ctx + "/js/gis/bubble.js";//你要加载的js路径
document.getElementsByTagName('head')[0].appendChild(script);
}
function add3DTile() {
var script=document.createElement("script");
script.type="text/javascript";
script.src= ctx + "/js/gis/3DTile.js";//你要加载的js路径
document.getElementsByTagName('head')[0].appendChild(script);
}
//function fuse() {
// var script=document.createElement("script");
// script.type="text/javascript";
// script.src= ctx + "/js/gis/fuse.js?v=1.01";//你要加载的js路径
// document.getElementsByTagName('head')[0].appendChild(script);
//}
function initC() {
var elem = document.createElement("link");
elem.rel = "stylesheet";
elem.type = "text/css";
elem.href = ctx + '/style/cls1/gis/init.css';
document.body.appendChild(elem);
}
var initSetInterval = setInterval(
function(){
if(_Cesium == null){
return;
}else{
this.tool();
// setTimeout(function (){
this.model();
this.work();
this.bubble();
this.add3DTile();
this.initC();
// },300);
clearInterval(initSetInterval);
}
}
, 1000);
//setTimeout(function (){
// this.init();
//},500);
//setTimeout(function (){
// console.log(_Cesium);
// if(_Cesium == null){
// this.init();
// }else{
// this.tool();
// }
//},600);
//setTimeout(function (){
// console.log(_Cesium);
// if(_Cesium == null){
// this.init();
// }else{
// this.model();
// this.work();
// this.bubble();
// this.add3DTile();
//// this.fuse();
// this.initC();
// }
//},1000);