private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (this.comboBoxMapType.Text == "Google Plain")
{
gMapControl.MapProvider = GMapProviders.GoogleMap;
}
else if (this.comboBoxMapType.Text == "Google Satellite")
{
gMapControl.MapProvider = GMapProviders.GoogleSatelliteMap;
}
else if (this.comboBoxMapType.Text == "Google Terrain")
{
gMapControl.MapProvider = GMapProviders.GoogleTerrainMap;
}
else if (this.comboBoxMapType.Text == "Google Hybrid")
{
gMapControl.MapProvider = GMapProviders.GoogleHybridMap;
}
else if (this.comboBoxMapType.Text == "Custom Built")
{
gMapControl.MapProvider = GMapProviders.EmptyProvider;
}
}