ThinkGeo.com    |     Documentation    |     Premium Support

MapPrinterLayer Layers collection of of Type Layer

We are in the early stages of upgrading our application from ThinkGeo WinForms 10 to ThinkGeo Winforms 14. One of the problems is with the MapPrinterLayer. Since its Layers property is GeoCollection(Of Layer) we cannot add all of the layers, since some of them do not derive from the Layer type. Can you change the Layers collection to Collection(Of LayerBase)?

Thanks!

Steve

Hi Steve,

It has been upgraded in the latest beta 016.

Thanks!
Ben

Thanks Ben!

However there are still some places in MapPrinterLayer that use Layer instead of LayerBase like below:

 protected override void OpenCore()
 {
   foreach (Layer layer in layers)
   {
     layer.Open();
   }

   base.OpenCore();
 }

 protected override void CloseCore()
 {
   foreach (Layer layer in layers)
   {
     layer.Close();
   }

   base.CloseCore();
 }

Thanks again!

Steve

Hi Steve,

We just fixed that, please get the latest beta 019 and have a try.

Thanks,
Ben