mutipoint tool broken in 4.11

177
1
05-30-2019 11:37 PM
mannokmannok
New Contributor II

How come `multipoint` in `SketchViewModel` has broken after 4.11?

var svm = new SketchViewModel({

    layer: new GraphicsLayer(),
    view: mapView,
    pointSymbol: {
        type: "simple-marker",
        style: "circle",
        size: 6,
        color: [255, 255, 255],
        outline: {
        color: [50, 50, 50],
        width: 1
        }
    }
})

svm.on('create', evt => {
    console.log(evt);
})

svm.create('multipoint', {mode: 'freehand'})

after some manipulation I get back an event with no geometry!!!!   how come!!!?

0 Kudos
1 Reply
UndralBatsukh
Esri Regular Contributor

Hi there, 

You cannot create multipoint geometries with hybrid or freehand mode as they are used for lines and polygons. See this document. So please update your code as shown below:

 

sketchViewModel.create("multipoint");
0 Kudos