function onload(Cesium) {
//初始化viewer部件
var viewer = new Cesium.Viewer('cesiumContainer', {});
var scene = viewer.scene;
var promise = scene.open('http://localhost:8090/iserver/services/3D-scene/rest/realspace');
Cesium.when(promise, function (layer) {
var layer = scene.layers.find("管线@矢量");
var hyp = new Cesium.HypsometricSetting();
function setHypsometric(layer) {
hyp.emissionTextureArray = [{
url: "./arrow.jpg",
USpeed: 0.2,
VSpeed: 0.2,
UTiling: 0,
VTiling: 3
}]
layer.hypsometricSetting = {
hypsometricSetting: hyp,
}
};
});
}
可以确定服务能访问,图层也有读到,图片路径没有问题,不知道是不是这种管线不支持自发光纹理?