Select to view content in your preferred language

Snap Options

668
2
Jump to solution
01-23-2012 02:23 AM
SelçukTınaz
Occasional Contributor
Hello Everyone,

  I am using ESRI Editor Widget and I am trying to create a snap tool for users. This tool will make user select which layers
will be inside the snap layer(no problem about this). In addition, the tool must present some snap options for user to set. I could not reach to
those options yet. For example: snap distance. Where are they inside the Editor?

Thanks in Adveance
0 Kudos
1 Solution

Accepted Solutions
JenniferNery
Esri Regular Contributor
This SDK sample shows how you can set Editor attached properties (SnapDistance and SnapKey): http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave

<esri:Map x:Name="MyMap" WrapAround="True" Extent="-13054165,3850112,-13027133,3863559"                    esri:Editor.SnapDistance="20" esri:Editor.SnapKey="S">


The same code applies in EditorWidget and TemplatePicker. This Snap properties will affect Draw and EditVertices. In the above example, snapping is activated by pressing "S" key down.

View solution in original post

0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
This SDK sample shows how you can set Editor attached properties (SnapDistance and SnapKey): http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave

<esri:Map x:Name="MyMap" WrapAround="True" Extent="-13054165,3850112,-13027133,3863559"                    esri:Editor.SnapDistance="20" esri:Editor.SnapKey="S">


The same code applies in EditorWidget and TemplatePicker. This Snap properties will affect Draw and EditVertices. In the above example, snapping is activated by pressing "S" key down.
0 Kudos
SelçukTınaz
Occasional Contributor
Thank you for your answer.

I was trying to do it with c sharp code. With your clue I managed it.
With c# => Editor.SetDistance(map , distance). We can do so,

Thanks again.
0 Kudos