how to set a color for scene layer?
In JS, it works in this way:
//Create SceneLayer and add to the map
var sceneLayer = new SceneLayer({
url: "http://scene.arcgis.com/arcgis/rest/services/Hosted/Buildings_Brest/SceneServer/layers/0/"
});
map.add(sceneLayer);
//Create MeshSymbol3D for symbolizing SceneLayer
var symbol = new MeshSymbol3D(
new FillSymbol3DLayer({
//If the value of material is not assigned, the default color will be grey
material: {
color: [0, 122, 0,0.7]
}
})
);
//Add the renderer to sceneLayer
sceneLayer.renderer = new SimpleRenderer(symbol);
but in c#,no renderer for scene layer.
Solved! Go to Solution.
The ArcGIS Runtime for .NET doesn't support overwriting the SceneLayer symbology in 10.2.6. This is why there is no renderer for the SceneLayer. If you want to change the color of the buildings, it needs to be done while publishing the service.
But later this year or early next year, SceneLayer will allow you to publish points features to be consumed in a 3D environment (in addition to the current SceneLayer capabilities that only supports Mesh Data: like buildings...). That will require being able to change the symbology the same way you can using a feature layer. So when the ArcGIS Runtime will support that new type of SceneLayer you'll be able to set a Renderer for it, and you'll be able to change the Color of even Mesh SceneLayers.
The ArcGIS Runtime for .NET doesn't support overwriting the SceneLayer symbology in 10.2.6. This is why there is no renderer for the SceneLayer. If you want to change the color of the buildings, it needs to be done while publishing the service.
But later this year or early next year, SceneLayer will allow you to publish points features to be consumed in a 3D environment (in addition to the current SceneLayer capabilities that only supports Mesh Data: like buildings...). That will require being able to change the symbology the same way you can using a feature layer. So when the ArcGIS Runtime will support that new type of SceneLayer you'll be able to set a Renderer for it, and you'll be able to change the Color of even Mesh SceneLayers.
Thanks Adrien, and looking forward to next version