EarthSDK
    正在准备搜索索引...

    变量 defaultLoadFuncStr常量

    defaultLoadFuncStr: "// dataSource\n(dataSource) => {\n if (dataSource) {\n dataSource.show = true;\n\n const entities = dataSource.entities.values;\n const colorHash = {};\n for (let i = 0; i < entities.length; i++) {\n const entity = entities[i];\n const name = entity.name;\n let color = colorHash[name];\n if (!color) {\n color = Cesium.Color.fromRandom({\n alpha: 1.0,\n });\n colorHash[name] = color;\n }\n if (entity.polygon) {\n\n entity.polygon.material = color;\n entity.polygon.outline = false;\n entity.polygon.extrudedHeight = entity.properties.Population / 50.0;\n }\n }\n }\n}\n" = ...

    默认的数据加载函数的字符串表示