Skip to main content
Clarified question
Source Link
Chris
  • 431
  • 3
  • 11

I am using a SceneView and SceneLayer with the ArcGIS Javascript API 4.5. My SceneLayer has point features and I want to display them as cones with the point of the cone pointing to the ground. I can get them to render as cones with this renderer:

var renderer = {
    type: 'simple',  // autocasts as new SimpleRenderer()
    symbol: {  // symbol type required for rendering point geometries
        type: 'point-3d',  // autocasts as new PointSymbol3D()
        symbolLayers: [{  // renders points as volumetric objects
            type: 'object',  // autocasts as new ObjectSymbol3DLayer()
            resource: { primitive: 'cone' },  // renders points as cones
            width: 15
        }]
    }
};

However the cones are pointing the wrong direction and I can't find a good example of how to rotate them. Does anyone have any examples of this?

I would also like these points to scale based on zoom. I know that there is scale-based symbol sizing that you can enablebe done for a web scene in ArcGIS Promap view but I haven't found how to do this with the JS APIa scene view. Is this possible?

I am using a SceneView and SceneLayer with the ArcGIS Javascript API 4.5. My SceneLayer has point features and I want to display them as cones with the point of the cone pointing to the ground. I can get them to render as cones with this renderer:

var renderer = {
    type: 'simple',  // autocasts as new SimpleRenderer()
    symbol: {  // symbol type required for rendering point geometries
        type: 'point-3d',  // autocasts as new PointSymbol3D()
        symbolLayers: [{  // renders points as volumetric objects
            type: 'object',  // autocasts as new ObjectSymbol3DLayer()
            resource: { primitive: 'cone' },  // renders points as cones
            width: 15
        }]
    }
};

However the cones are pointing the wrong direction and I can't find a good example of how to rotate them. Does anyone have any examples of this?

I would also like these points to scale based on zoom. I know that there is scale-based symbol sizing that you can enable for a web scene in ArcGIS Pro but I haven't found how to do this with the JS API. Is this possible?

I am using a SceneView and SceneLayer with the ArcGIS Javascript API 4.5. My SceneLayer has point features and I want to display them as cones with the point of the cone pointing to the ground. I can get them to render as cones with this renderer:

var renderer = {
    type: 'simple',  // autocasts as new SimpleRenderer()
    symbol: {  // symbol type required for rendering point geometries
        type: 'point-3d',  // autocasts as new PointSymbol3D()
        symbolLayers: [{  // renders points as volumetric objects
            type: 'object',  // autocasts as new ObjectSymbol3DLayer()
            resource: { primitive: 'cone' },  // renders points as cones
            width: 15
        }]
    }
};

However the cones are pointing the wrong direction and I can't find a good example of how to rotate them. Does anyone have any examples of this?

I would also like these points to scale based on zoom. I know that scale-based symbol sizing can be done for a map view but I haven't found how to do this with a scene view. Is this possible?

Source Link
Chris
  • 431
  • 3
  • 11

Rotating Point Symbols in ArcGIS Javascript API 4.5 SceneLayer

I am using a SceneView and SceneLayer with the ArcGIS Javascript API 4.5. My SceneLayer has point features and I want to display them as cones with the point of the cone pointing to the ground. I can get them to render as cones with this renderer:

var renderer = {
    type: 'simple',  // autocasts as new SimpleRenderer()
    symbol: {  // symbol type required for rendering point geometries
        type: 'point-3d',  // autocasts as new PointSymbol3D()
        symbolLayers: [{  // renders points as volumetric objects
            type: 'object',  // autocasts as new ObjectSymbol3DLayer()
            resource: { primitive: 'cone' },  // renders points as cones
            width: 15
        }]
    }
};

However the cones are pointing the wrong direction and I can't find a good example of how to rotate them. Does anyone have any examples of this?

I would also like these points to scale based on zoom. I know that there is scale-based symbol sizing that you can enable for a web scene in ArcGIS Pro but I haven't found how to do this with the JS API. Is this possible?