Hello,
i need draw line and snap it to existing feaures from map service. Now it is possible to snap only to itself.
Widget code example:
postCreate: function(){
snapManager = this.map.enableSnapping();
toolbar = new Draw(this.map);
toolbar.activate(Draw["POLYLINE"]);
}
Please help me
Thanks
Ondra
Ondra,
Snapping to a graphic that you are currently drawing is not supported at this time.
Hi,
maybe we do not understand.
I need to snap the line that I just draw to the features from map service (Operational layers)
Ondra,
Are you holding the "Ctrl" key when attempting to snap?
Yes, but line snap only itself
Ondra,
Sorry for the confusion. Currently snapping to features in the map is not supported. Only snapping to other drawing geometries is supported.
Ondrej,
It seems that you can set the `layerInfos` parameter to specify snapping layers.