AnsweredAssumed Answered

How to use a simple renderer and simple fill symbol to visualize a true vertical polygon in WebScene (4.0beta3)?

Question asked by halmaia on Mar 21, 2016
Latest reply on Mar 22, 2016 by KEkenes-esristaff

Here is my best try. However, the result is always a holow poylgon with black outline.

 

function (WebScene, SceneView, FeatureLayer, Extent, SpatialReference, SimpleRenderer, SimpleFillSymbol, FillSymbol3DLayer, PolygonSymbol3D) {

                        var clipExtent = new Extent({

                            xmax: 2145350.5831,

                            xmin: 2051889.3218,

                            ymax: 5920453.5331,

                            ymin: 5826963.4038,

                            spatialReference: new SpatialReference({

                                wkid: 3857

                            })

                        });

 

                        var wellsURL = "http://192.168.0.212:6080/arcgis/rest/services/fgp/FeatureServer/1";

 

                        var PolygonRenderer = new SimpleRenderer({

                            symbol: new PolygonSymbol3D({

                                symbolLayers: [new FillSymbol3DLayer({ material: { color: "red" } })]

                            })

                        });

 

                        var layer = new FeatureLayer({

                            url: wellsURL,

                            fullExtent: clipExtent,

                            renderer: PolygonRenderer,

                            returnZ: true,

                            elevationInfo: {

                                mode: "absoluteHeight"

                            }

                        });

 

                        var scene = new WebScene({

                            basemap: "topo",

                            viewingMode: "local",

                            clippingEnabled: true,

                            clippingArea: clipExtent,

                            layers: [layer]

                        });

 

                        var view = new SceneView({

                            container: "viewDiv",

                            map: scene,

                            extent: clipExtent,

                            constraints: {

                                collision: {

                                    enabled: false

                                },

                                tilt: {

                                    max: 179.99

                                }

                            },

                            environment: {

                                atmosphere: "none",

                                stars: "none"

                            }

                        });

                    })

 

Ákos Halmai

Attachments

Outcomes