How to make graphic point fixed?

144
0
05-31-2022 03:26 AM
YogeshSwami
New Contributor II

Hello Community,

I am facing a problem which drawing a point graphic. After drawing the graphic, it should be fixed, but I am able to click it again and drag it. How to stop it from getting dragged?

Here is how I am creating my point graphic =>

                            const a = t.results[0];
                            let graphic = new Graphic({
                                geometry: a.mapPoint,
                                symbol:  this.fillSymbol('simple-marker', '#12AD2B', '#FFFF00'),
                            });
                            this.pointsLayer.graphics.add(graphic);
                            view.map.addMany([this.pointsLayer]);
 
I want to get the point drawn fixed. How to do that?
 
Thanks in advance
0 Kudos
0 Replies