Select to view content in your preferred language

Sketch Layer

968
2
Jump to solution
10-29-2012 10:45 AM
VIKRANTKRISHNA
Regular Contributor
Once I start drawing on the sketch layer on the map; I don't know how to stop drawing and go to regular tap mode. Is it possible to trigger start and stop drawing on the sketch layer?
0 Kudos
1 Solution

Accepted Solutions
NimeshJarecha
Esri Regular Contributor
When you start sketching you set mapView' touch delegate as sketch layer (self.mapView.touchDelegate = sketchLayer). When you want to stop you should set it back to mapView's touch delegate (self.mapView.touchDelegate = self) and it'll go back to normal mapView touch mode.

Also, go through sketch layer documentation.

Regards,
Nimesh

View solution in original post

0 Kudos
2 Replies
NimeshJarecha
Esri Regular Contributor
When you start sketching you set mapView' touch delegate as sketch layer (self.mapView.touchDelegate = sketchLayer). When you want to stop you should set it back to mapView's touch delegate (self.mapView.touchDelegate = self) and it'll go back to normal mapView touch mode.

Also, go through sketch layer documentation.

Regards,
Nimesh
0 Kudos
VIKRANTKRISHNA
Regular Contributor
Thanks Nimesh
0 Kudos