List Layers

11/27/2017 4:44:59 AM
Total Posts 7

List Layers


 1. how can I list those layers which are rendered through database not to shape files.?

 2. is there a way to group layers for the base map?

11/27/2017 5:15:59 AM
Total Posts 328

Re: List Layers

As a workaround try to assign an ID for database layers when they are added, for example

Layer.Description = "DB";

Then filter the layers

foreach (AspMap.Layer layer in map)

  if (layer.Description != "DB") continue; 

    // ...