var layer_xingzhengqu_100; var layer_sifasuo_101; var layer_shequjiaozheng_102; var layer_anzhibangjiao_103; var layer_renmintiaojie_104; var layer_pudong_gltf_200; var layer_shanghai_tiles_201; var layer_shanghai_roads_202; var layer_sifaju_effect_203; var layer_shanghai_mask_300; var msisdn_list; var open_merge_list = []; var new_msisdn_list = []; var model_list = []; var color_boxs = $("#color_boxs") var initGraphic var mr_points_list = []//创建的定位点数组 var new_mr_points_list = []//将定位点改变后的样式存入 var points17 = [] var graphicLayer17 // import data from '../data/sites.js' var get_JSON = { ruijin_url:"http://localhost:4500/dataservice/Bdata?bid=" } // 页面初始化,创建楼层按键 $(document).ready(function(){ var btn_box_html = '' for(let i=1;i<23;i++){ btn_box_html += `` } $("#building_btn").append(btn_box_html) $.ajax({ type:'get', dataType:'json', async:true, url:'http://localhost:4500/dataservice/Bdata?bid=get_ruijin_outside&floor_=7', success:function(data){ console.log("e") let datas = data.data.data console.log(datas) for(let i=0;i一楼

`, rotation:{x:0,y:0,z:180} }) floorGraphic2 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 0], // 楼栋位置 style: { scale:1, distanceDisplayCondition_far:100, url: "./gltf/Ruijin2/F2.gltf", heading: heading_, color:"#ffff00", fill:true }, popup:`

二楼

`, rotation:{x:0,y:0,z:180} }) floorGraphic3 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 0], // 楼栋位置 style: { scale:1, distanceDisplayCondition_far:100, url: "./gltf/Ruijin2/F3-5.gltf", heading: heading_, color:"#ffff00", fill:true }, popup:`

三楼

`, rotation:{x:0,y:0,z:180} }) floorGraphic4 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 2.8], // 楼栋位置 style: { scale:1, distanceDisplayCondition_far:100, url: "./gltf/Ruijin2/F3-5.gltf", heading: heading_, color:"#ffff00", fill:true }, popup:`

四楼

`, rotation:{x:0,y:0,z:180} }) floorGraphic5 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 5.6], // 楼栋位置 style: { scale:1, distanceDisplayCondition_far:100, url: "./gltf/Ruijin2/F3-5.gltf", heading: heading_, color:"#ffff00", fill:true }, popup:`

五楼

`, rotation:{x:0,y:0,z:180} }) floorGraphic6 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 8.4], // 楼栋位置 style: { scale:1, distanceDisplayCondition_far:100, url: "./gltf/Ruijin2/F3-5.gltf", heading: heading_, color:"#ffff00", fill:true }, rotation:{x:0,y:0,z:180} }) floorGraphic7 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 1.8], // 楼栋位置 style: { scale:1, url: "./gltf/Ruijin2/F5-roof.gltf", heading: heading_, color:"#ffff00", fill:true }, popup:`

六楼

`, rotation:{x:0,y:0,z:180} }) floorGraphic8 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, -1.1], // 楼栋位置 style: { scale:1, url: "./gltf/Ruijin2/F7-16.gltf", heading: heading_, color:"#ffff00", fill:true }, popup:`

七楼

`, rotation:{x:0,y:0,z:180} }) floorGraphic9 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 2.1], // 楼栋位置 style: { scale:1, url: "./gltf/Ruijin2/F7-16.gltf", heading: heading_, color:"#ffff00", fill:true }, popup:`

八楼

`, rotation:{x:0,y:0,z:180} }) floorGraphic10 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 5], // 楼栋位置 style: { scale:1, url: "./gltf/Ruijin2/F7-16.gltf", heading: heading_, color:"#ffff00", fill:true }, rotation:{x:0,y:0,z:180} }) floorGraphic11 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 7.9], // 楼栋位置 style: { scale:1, url: "./gltf/Ruijin2/F7-16.gltf", heading: heading_, color:"#ffff00", fill:true }, rotation:{x:0,y:0,z:180} }) floorGraphic12 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 10.7], // 楼栋位置 style: { scale:1, url: "./gltf/Ruijin2/F7-16.gltf", heading: heading_, color:"#ffff00", fill:true }, rotation:{x:0,y:0,z:180} }) floorGraphic13 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 13.5], // 楼栋位置 style: { scale:1, url: "./gltf/Ruijin2/F7-16.gltf", heading: heading_, color:"#ffff00", fill:true }, rotation:{x:0,y:0,z:180} }) floorGraphic14 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 16.3], // 楼栋位置 style: { scale:1, url: "./gltf/Ruijin2/F7-16.gltf", heading: heading_, color:"#ffff00", fill:true }, rotation:{x:0,y:0,z:180} }) floorGraphic15 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 19.1], // 楼栋位置 style: { scale:1, url: "./gltf/Ruijin2/F7-16.gltf", heading: heading_, color:"#ffff00", fill:true }, rotation:{x:0,y:0,z:180} }) floorGraphic16 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 21.9], // 楼栋位置 style: { scale:1, fill:true, // opacity:0.7, // color:"#ffffff", url: "./gltf/Ruijin2/F7-16.gltf", heading: heading_, color:"#ffff00", fill:true }, rotation:{x:0,y:0,z:180} }) floorGraphic17 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 24.7], // 楼栋位置 style: { scale:1, url: "./gltf/Ruijin2/F7-16.gltf", heading: heading_, color:"#ffff00", fill:true }, rotation:{x:0,y:0,z:180} }) floorGraphic18 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, -5], // 楼栋位置 style: { scale:1, url: "./gltf/Ruijin2/L17_220303.gltf", heading: heading_, color:"#ffff00", fill:true }, rotation:{x:0,y:0,z:180} }) floorGraphic19 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, -2], // 楼栋位置 style: { scale:1, url: "./gltf/Ruijin2/L17_220303.gltf", heading: heading_, color:"#ffff00", fill:true }, rotation:{x:0,y:0,z:180} }) floorGraphic20 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 1], // 楼栋位置 style: { scale:1, url: "./gltf/Ruijin2/L17_220303.gltf", heading: heading_, color:"#ffff00", fill:true }, rotation:{x:0,y:0,z:180} }) floorGraphic21 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 4], // 楼栋位置 style: { scale:1, url: "./gltf/Ruijin2/L17_220303.gltf", heading: heading_, color:"#ffff00", fill:true }, rotation:{x:0,y:0,z:180} }) floorGraphic22 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 7], // 楼栋位置 style: { scale:1, url: "./gltf/Ruijin2/L17_220303.gltf", heading: heading_, color:"#ffff00", fill:true }, rotation:{x:0,y:0,z:180} }) floorGraphic23 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, 10], // 楼栋位置 style: { scale:1, url: "./gltf/Ruijin2/L17_220303.gltf", heading: heading_, color:"#ffff00", fill:true }, rotation:{x:0,y:0,z:180} }) floorGraphic24 = new mars3d.graphic.ModelEntity({ position: [model_lon,model_lat, -6.8], // 楼栋位置 style: { scale:1, maximumScale:2, url: "./gltf/Ruijin2/F22-roof.gltf", heading: heading_, color:"#ffff00", fill:true }, }) model_list.push( floorGraphic1, floorGraphic2, floorGraphic3, floorGraphic4, floorGraphic5, floorGraphic6, floorGraphic7, floorGraphic8, floorGraphic9, floorGraphic10, floorGraphic11, floorGraphic12, floorGraphic13, floorGraphic14, floorGraphic15, floorGraphic16, floorGraphic17, floorGraphic18, floorGraphic19, floorGraphic20, floorGraphic21, floorGraphic22, floorGraphic23, floorGraphic24, ) for(let i = 0;i0){ var ColorHex=new Array('00','33','66','99','CC','FF') var SpColorHex=new Array('FF0000','00FF00','0000FF','FFFF00','00FFFF','FF00FF') var colorTable='' for (i=0;i<2;i++) //循环2部分 { for (j=0;j<6;j++) //循环6行 { colorTable=colorTable+'' for (k=0;k<3;k++) { for (l=0;l<6;l++) { colorTable=colorTable+'' } } } } colorTable='' +colorTable+'
'; colorpanel.innerHTML=colorTable } } // 计算高度 function finalHeight(h){ let h1 = Number(h) let h2 = 0 let h3 = 0 let h4 = 0 let h5 = 0 if(h1<=4.5){ h5 = 1 }else{ h2 = h1-4.5-1 h3 = h2/2.8 h4 = Math.floor(h3)+2 h5 = h4*3 } return h5 } // 添加PCI模型 function addPciModel(){ var PCI_position_layer = new mars3d.layer.GraphicLayer({ pid:99, name:'new_PCI', show:false }) map.addLayer(PCI_position_layer) $.ajax({ type:'get', dataType:'json', async:true, url:get_JSON.ruijin_url+'get_rru_info', success:function(data){ var datas_2 = [] let datas = data.data.data for(let i=0;i名称:${item.SitenameCN}

地址:${item.SiteAddress}

编号:${item.eNodeBID}

经度:${item.Longitude}

纬度:${item.Latitude}

高度:${item.AntHight}

`, show:true }) PCI_position_layer.addGraphic(coneGlow) } for(let i=0;iPCI:${item.PCI}

Sitename:${item.SitenameCN}

信号:${item.frequencyRange}

???:${item.EARFCN}

`, description:"文字" }) // PCI_position_layer.addGraphic(primitive) return primitive } // 添加设备定位点 function addMrPosition(){ var mr_position_graphic = new mars3d.layer.GraphicLayer({ pid:90, name:'设备定位', show:false }) map.addLayer(mr_position_graphic) $.ajax({ type:'get', dataType:'json', async:true, url:'http://localhost:4500/dataservice/Bdata?bid=get_mr_correted', success:function(data){ let datas = data.data.data console.log(data.data.data,"获取数据") for(let i=0;i时间:" + item["id"] + "
名称:" + item["name_"] + "

轨迹查询

" }) mr_points_list.push(map_name_) mr_position_graphic.addGraphic(map_name_) } } }) } function addpoint17(){ graphicLayer17 = new mars3d.layer.GraphicLayer() map.addLayer(graphicLayer17) } function addCustomLayers() { addPciModel();//PCI位置 openFloor();//瑞金大楼 addMrPosition();//设备定位点 addpoint17(); }