Hello,
I am trying to draw a rectangle on a SceneView with SketchViewModel and have it be scaleable as in this example: https://developers.arcgis.com/javascript/latest/sample-code/sketch-geometries/
When I attempt to use the "transform" tool on the graphic in my SceneView, the scaling handles do not appear.
On the example, I can transform like this:
Here is the code I'm using:
const graphicsLayer = new modules.GraphicsLayer()
view.map.layers.add(graphicsLayer)
const sketch = new SketchViewModel({ view, layer: graphicsLayer, defaultUpdateOptions: { tool: 'transform' } })
const polygonSymbol = {
type: 'simple-fill',
color: [150, 150, 150, 0.2],
outline: {
color: [255, 0, 0],
width: 2
}
}
sketch.set('polygonSymbol', polygonSymbol)
sketch.create('rectangle', { hasZ: false })
Is there something I'm missing?