AnsweredAssumed Answered

why the SketchEditor always is null in xamarin.Android

Question asked by xipeng on Apr 11, 2017
Latest reply on Apr 11, 2017 by xipeng

I want to draw polyline use SketchEditor in Android, but this SketchEditor always is null,why?

my code as follow:

 

btnEdit = FindViewById<Button>(Resource.Id.button1);
btnEdit.Click += (s, e) => {
try
{
SketchEditor se = new SketchEditor();
this._mapView.SketchEditor = se;
this._mapView.SketchEditor.StartAsync(SketchCreationMode.Polyline);
}
catch(Exception ex)
{
}

 

 

Really looking forward to answer 

thanks

Outcomes