cesium 信息框 infowindow

2021-01-21 13:14

阅读:591

标签:str   scene   tle   bullet   entity   and   javascrip   rom   add   

技术图片

 

 

if (pick.id.name === _entityNames.dikuai) {
                        content = ‘
‘ + entityDatainfo.title_num + ‘
‘; content += ‘‘; content += ‘‘; content += ‘‘; }else if(pick.id.name === _entityNames.loupan){ content = ‘
‘ + entityDatainfo.pro_name + ‘
‘ + entityDatainfo.land_location + ‘ ‘ + entityDatainfo.qu_yu + ‘ ‘ + entityDatainfo.huanxian + ‘
‘ + entityDatainfo.yongtu_xiuzheng + ‘ ‘ + entityDatainfo.changdi_xianzhuang + ‘
公告时间 ‘ + entityDatainfo.bulletin_time + ‘
‘; content += ‘‘; content += ‘‘; if (entityDatainfo.huxing2 && entityDatainfo.fangwu_yongtu2) { content += ‘‘; content += ‘‘; } }

  

 

/**
 * 加载3Dtiles
 */
function addTileSet() {
    let url=‘./data/tileset/gaoxin2/tileset.json‘;
    var tileset = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
        url : url
    }));
    tileset.name=_entityNames.dikuai;
    tileset.style = new Cesium.Cesium3DTileStyle({
        color : {
            conditions : [
                /*[‘${Height} >= 100‘, ‘color("purple", 0.5)‘],
                [‘${Height} >= 50‘, ‘color("red")‘],*/
                [‘${louceng}  0‘,
        meta : {
            description : ‘"Building id ${id} has height ${Height}."‘
        }
    });
    tileset.readyPromise.then(function(tileset) {
        // tile.properties is not defined until readyPromise resolves.
        var properties = tileset.properties;
        if (Cesium.defined(properties)) {
            for (var name in properties) {
                console.log(properties[name]);
            }
        }
    });
}

  

cesium 信息框 infowindow

标签:str   scene   tle   bullet   entity   and   javascrip   rom   add   

原文地址:https://www.cnblogs.com/dog2016/p/12109200.html

‘ + (entityDatainfo.plate?entityDatainfo.plate:‘‘) + ‘ ‘ + (entityDatainfo.huanxian?entityDatainfo.huanxian:‘‘) + ‘ ‘ + (entityDatainfo.district?entityDatainfo.district:‘‘) + ‘
‘ + ‘ ‘ + entityDatainfo.kaifashang + ‘
‘ + entityDatainfo.fangwu_yongtu2 + ‘
‘ + entityDatainfo.huxing2 + ‘


评论


亲,登录后才可以留言!