Select to view content in your preferred language

How to make graphic point fixed?

198
0
05-31-2022 03:26 AM
YogeshSwami
Emerging Contributor

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