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!!!?
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");