void SetTestFeatureLayer(int index) { this.MapView.RemoveMapLayerWithName(TestFeatureLayerName); var url = NSUrl.FromString(FeatureLayerUrls[0]); var testFeatureLayer = AGSFeatureLayer.FeatureServiceLayerWithURL(url, AGSFeatureLayerMode.OnDemand); testFeatureLayer.OutFields = new string[] { "*" }; var testSymbol = new AGSSimpleMarkerSymbol(UIColor.Red) { Size = new SizeF(30, 30), Style = AGSSimpleMarkerSymbolStyle.Circle }; testFeatureLayer.Renderer = new AGSSimpleRenderer(testSymbol); //testFeatureLayer.WeakInfoTemplateDelegate = new TestInfoTemplateDelegate(); var testInfoTemplateDelegate = new TestInfoTemplateDelegate(); testFeatureLayer.InfoTemplateDelegate = testInfoTemplateDelegate; this.MapView.AddMapLayer(testFeatureLayer, TestFeatureLayerName); }