Changes between Version 2 and Version 3 of maestro/MaestroAPI/samples/AddInitialLayer


Ignore:
Timestamp:
10/14/08 07:47:34 (16 years ago)
Author:
ksgeograf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • maestro/MaestroAPI/samples/AddInitialLayer

    v2 v3  
    5959
    6060'Add the layer to the MapDefinition
    61 mapDef.Layers.Add(layer)
     61'Unfortunately we cannot control the order at this time, so we do it manually
     62Dim maplayers as new List(Of MapLayerType)(mapDef.Layers)
     63maplayers.Insert(0, layer)
     64mapDef.Layers = new MapLayerTypeCollection();
     65foreach (mlt as MapLayerType in maplayers)
     66    mapDef.Layers.Add(mlt);
    6267
    6368'Generate a temporary MapDefinition id