I need to set snapping to snap just to polygon vertex (by default it snaps to polygon vertex and edges).

In this example and according to this, the map.enableSnapping() function should return an SnappingManager and then I could set the layerInfo array of this object, setting for each item the snapToEdge property to false. But in my testing the map.enableSnapping() is returning undefined.

ArcGIS javascript API is 3.7 and ArcGIS Server is 10.2.

1 Answer 1


Make sure you import SnappingManager even if you don't use it.

], function(..., SnappingManager) {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.