List Layers

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

List Layers

Hi,

 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
MVP
Total Posts 326

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; 

    // ...

}