Nigel,
I believe by default snapping is available. You can expressly set snapping parameters for the edit tool or draw tool. Here is an excerpt from the API reference:
snapMode:String
Since : | ArcGIS API for Flex 2.5 |
Specifies whether snapping is off, always on or enabled by pressing the Ctrl key.
The default value is SNAP_MODE_ON_DEMAND
.
This property can be used as the source for data binding.
Implementation
public function get snapMode():String
public function set snapMode(value:String):void
I put together a measure widget that is a variation of the draw tool. It also has snapping capability. You can view it here:
Yakima CityFlex Viewer - measure widget
Here is a code snippet from my measure widget setting the draw tool snapping parameters:
<esri:DrawTool id="measureDrawTool" map="{map}"
snapDistance="20" snapMode="onDemand" snapOption="vertex"
showDrawTips="{showDrawingTips}"
drawEnd="map_drawEndHandler(event)"
graphicsLayer="{graphicsLayer}"
lineSymbol="{lineSymbol}"
fillSymbol="{fillSymbol}" />
I hope this helps you!
Regards,
Tom