my scene is 3d containing buildings etc.
I want to create polygon that its points will "stick" to the 3D scene and not "float" in the air.
When I edit the polygon, I also want that its points will "stick" to the 3D scene and not "float" in the air.
Solved! Go to Solution.
I solved it -
1. I display the polygons via a graphic layer whose elevationInfo property you'll set to "on-the-ground".
2. I use SketchViewModel whose layer property is that graphic layer, and whose defaultUpdateOptions property is:
defaultUpdateOptions: {
tool: "reshape",
enableRotation: false,
enableMoveAllGraphics: false,
enableScaling: false,
reshapeOptions: {
shapeOperation: "none"
},
toggleToolOnClick: false
}
I solved it -
1. I display the polygons via a graphic layer whose elevationInfo property you'll set to "on-the-ground".
2. I use SketchViewModel whose layer property is that graphic layer, and whose defaultUpdateOptions property is:
defaultUpdateOptions: {
tool: "reshape",
enableRotation: false,
enableMoveAllGraphics: false,
enableScaling: false,
reshapeOptions: {
shapeOperation: "none"
},
toggleToolOnClick: false
}