Skip to content

Instantly share code, notes, and snippets.

@geobabbler
Created January 16, 2015 20:47
Show Gist options
  • Save geobabbler/dab0a0ce0c523a496fb6 to your computer and use it in GitHub Desktop.
Save geobabbler/dab0a0ce0c523a496fb6 to your computer and use it in GitHub Desktop.
First code snippet for annotation post
if (_draw == null)
{
_draw = new Draw(BoundMap); //private class-level variable of type ESRI.ArcGIS.Client.Draw
_draw.DrawComplete += DrawCompleteHandler; //subscribe to the DrawComplete event
_activated = true;
_draw.IsEnabled = true; //enable the Draw object
}
_draw.DrawMode = DrawMode.Point; //set it to Point mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment