Select to view content in your preferred language

How to disable edit sketchviewmodel

637
1
03-27-2022 10:45 PM
testtestlast
New Contributor

Hello

i draw shape on arcGis map

i want to disable edit shape once it is created.

please find attachment.

following code is not working.

mapView.when(function () {
let sketchViewModel = new SketchViewModel({
view: mapView,
layer: tempGraphicsLayer,
updateOnGraphicClick: false,
defaultUpdateOptions: {
toggleToolOnClick: false
},
pointSymbol: {
type: "simple-marker",
style: "circle",
color: "#349eeb",
size: "16px",
outline: {
color: "#349eeb",
width: 4
},

},

0 Kudos
1 Reply
TravisNolen
Occasional Contributor

Hello.  I am running into a similar issue trying to disable editing of sketchviewmodel graphics.  Was there ever a solution for this?

 

0 Kudos