I am struggling with some code. The issue I am facing while drawing a poly-line I needed pan option so i have changed the draw mode from freehand to click. My problem is that sometimes while clicking on the map some points are getting skipped. Sometimes I have to click twice then only my poly-line vertex is adding on map.

I am using ArcGIS API (ex js.arcgis.com/4.10/') for JavaScript.

This is the line I have added.

const action = draw.create("polyline",{mode: "click"});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.