ThinkGeo.com    |     Documentation    |     Premium Support

Magnetic Declination Printer Layer

Hi,

I am having trouble when I add a MagneticDeclinationPrinterLayer to the MapPrinterLayer. It will not draw the North arrow, just draws the background mask. I have included a sample project.

Thanks!

Steve
PageLayoutControl_TG_14_MagDecPrinterLayer.zip (807.6 KB)

Hi Steve,

Thanks for the demo!

It’s because the MagneticDeclinationPrinterLayer only supported Decimal Degrees. We’ve made some changes, can you:

  1. Upgrade to the latest beta 14.4.0-beta024

  2. After setting the MapExtent, also set the Projection for the PrinterLayer.

    PageLayout.PageLayoutMap.MapExtent = MapUtil.GetDrawingExtent(moLineShapefile.GetBoundingBox, CSng(PageLayout.PageLayoutMap.GetBoundingBox().Width), CSng(PageLayout.PageLayoutMap.GetBoundingBox().Height))
    PageLayout.PageLayoutMap.Projection = New Projection(EnumCoordSys.NAD83_UTM_zone_16N)

It should be working fine

Thanks,
Ben