private void CreateLayout()
{
// Create a button to load the web map from the portal
var loadMapButton = new Button(this);
loadMapButton.Text = "Open web map";
loadMapButton.Click += OnLoadMapClicked;
// Create a new vertical layout for the app (button followed by map view)
var mainLayout = new LinearLayout(this) { Orientation = Orientation.Vertical };
// Add the load map button
mainLayout.AddView(loadMapButton);
// Add the map view to the layout
mainLayout.AddView(_myMapView);
// Show the layout in the app
SetContentView(mainLayout);
}