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; } }
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.