Hi, excusame a question please:
**(view the image that upload)
how can send the events "radio buttons" of options the map:
-Google Map
-Open Street Map
to the RadioButton that have in my windows forms,
Thanks you.
jose balmaceda
Send events radiobuttons map to radiobuttons winform
Hi Jose,
I am sorry I haven’t found your image, you should failed to upload it.
It looks you want to put a group radio button, then click it to switch the base map.
For simple please see the code as below:
winformsMap1.MapUnit = GeographyUnit.Meter;
GoogleMapsOverlay gmo = new GoogleMapsOverlay();
gmo.IsBase = true;
gmo.IsVisible = true;
OpenStreetMapOverlay osm = new OpenStreetMapOverlay();
osm.IsBase = true;
osm.IsVisible = false;
winformsMap1.Overlays.Add(gmo);
winformsMap1.Overlays.Add(osm);
winformsMap1.Refresh();
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
winformsMap1.Overlays[0].IsVisible = true;
winformsMap1.Overlays[1].IsVisible = false;
winformsMap1.Refresh();
}
private void radioButton2_CheckedChanged(object sender, EventArgs e)
{
winformsMap1.Overlays[0].IsVisible = false;
winformsMap1.Overlays[1].IsVisible = true;
winformsMap1.Refresh();
}
Wish that’s helpful.
Regards,
Don