how to set a render to scene layer?

2848
2
Jump to solution
07-29-2015 01:36 AM
lilexie
New Contributor

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.

0 Kudos
1 Solution

Accepted Solutions
AdrienMeriaux
Esri Contributor

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.

View solution in original post

2 Replies
AdrienMeriaux
Esri Contributor

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.

lilexie
New Contributor

Thanks Adrien, and looking forward to next version

0 Kudos