I turn of the logo using MapTools.Logo.Visbility. My map becomes disable, then later I renable it and the logo becomes visible. Is this a bug or should I change the visibility state within my code once its re-enabled?
.Ryan.
I turn of the logo using MapTools.Logo.Visbility. My map becomes disable, then later I renable it and the logo becomes visible. Is this a bug or should I change the visibility state within my code once its re-enabled?
.Ryan.
Hi Ryan,
I used the following code to enable/disable LogoMapTool and it works as expected, could you please use the code snippet to have another try and let me your result.
private void WpfMap_Loaded(object sender, RoutedEventArgs e)
{
Map1.MapUnit = GeographyUnit.DecimalDegree;
Map1.CurrentExtent = new RectangleShape(-155.733, 95.60, 104.42, -81.9);
WorldMapKitWmsWpfOverlay worldOverlay = new WorldMapKitWmsWpfOverlay();
Map1.Overlays.Add("WMK", worldOverlay);
Map1.MapClick += new System.EventHandler<MapClickWpfMapEventArgs>(Map1_MapClick);
Map1.Refresh();
}
private void Map1_MapClick(object sender, MapClickWpfMapEventArgs e)
{
Map1.MapTools.Logo.IsEnabled = !Map1.MapTools.Logo.IsEnabled;
}
Regards,
Ivan
Ivan,
Thanks for the code… I was using Visibility rather than IsEnabled. If you use visibility, this issue occurs.
.Ryan.
Thanks Ryan, I'm glad Ivan's code got you working.