We have licenses for both services.
How can I switch dynamically?
I have 2 buttons on my form and I can see Bing Map (default), but when I click to show World Map it shows empty window.
BingMapsOverlay _bingOverlay = new BingMapsOverlay(“xxxxxxxxxxxx”);
WorldMapKitWmsDesktopOverlay _worldMapKitOverlay = new WorldMapKitWmsDesktopOverlay(@“xxxxx”, @“xxxxxxxxxxxxx”);
private void buttonShowBingOverlay_Click(object sender, EventArgs e)
{
mapEngine.Overlays.Remove(_worldMapKitOverlay);
_bingOverlay.MapType = BingMapsMapType.AerialWithLabels;
mapEngine.Overlays.Add(_bingOverlay);
mapEngine.Refresh();
}
private void buttonShowThinkGeoOverlay_Click(object sender, EventArgs e)
{
mapEngine.Overlays.Remove(_bingOverlay);
_worldMapKitOverlay.MapType = WorldMapKitMapType.AerialWithLabels;
mapEngine.Overlays.Add(_worldMapKitOverlay);
mapEngine.Refresh();
}