Just change the Visible property in your FeatureLayer.
public void AllToggle(object sender, EventArgs e) { CheckBox ckbx = sender as CheckBox; if (ckbx.Name == "AllAvailable_Checkbox" & ckbx.IsChecked == true) { MyMap.Layers[1].Visible = true ; } else { MyMap.Layers[1].Visible = false; } }
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.