private void OnSublayersMenuItemClicked(object sender, PopupMenu.MenuItemClickEventArgs e)
{
// Change the checked value
e.Item.SetChecked(!e.Item.IsChecked);
// Get title from the selected item
var selectedSublayerTitle = e.Item.TitleCondensedFormatted.ToString();
// Get index that is used to get the selected url
var sublayer = _imageLayer.Sublayers.First(x => x.Name == selectedSublayerTitle);
sublayer.IsVisible = e.Item.IsChecked;
}