ThinkGeo.com    |     Documentation    |     Premium Support

Graticule Adornment will not display

Hi,

In v14, this code doesn’t add my image to the bottom right of the map. Right now, I just see powered by MapSuite which I don’t want to be visible

        // Create our GraphicLogAdornmentLayer and specify the graphic we want to use
        GraphicLogoAdornmentLayer graphicLogoAdornmentLayer = new GraphicLogoAdornmentLayer();
        graphicLogoAdornmentLayer.LogoImage = new Bitmap(Properties.Resources.ACTeQ_Logo, new Size(80, 80));
        WinMap.AdornmentOverlay.Layers.Add(graphicLogoAdornmentLayer);

Regards,
Damian

Just do

MapView.MapTools.Logo.Source = new BitmapImage(new Uri(@"YourLogo.png", UriKind.RelativeOrAbsolute));

So is GraphicAdornmentOverlay used for anything now? Why should I be able to set it up if it doesn’t do anything??? It doesn’t say anything about being deprecated.

This code gives me an error because I am not using a URI, but rather an image loaded as a resource. Barring that though, this code gets me this image… which does not even anchor the image to the bottom right (see image 2 where logo is clipped) and clearly does not honor the rendered size of 80x80 pixels.

        WinMap.MapTools.Logo.Source = new System.Windows.Media.Imaging.BitmapImage(new Uri(Path.Combine(Application.StartupPath, "ACTeQ-Logo.png")));
        WinMap.MapTools.Logo.RenderSize = new System.Windows.Size(80, 80);
        WinMap.MapTools.Logo.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Right;
        WinMap.MapTools.Logo.VerticalContentAlignment = System.Windows.VerticalAlignment.Bottom;