|
patrick.sender
|
|
i have a List<ShapeLayer> in an application. In the menu the user ckeck one or more checkboxes to show data (loading from a server) on the map. For every layer i create an index and now i want to add the layer (with the shapes inside) at the position of my index to the Map.
like this:
_ShapeLayer[index].Shapes.Add(shape); Map1.Layers.Add(_ShapeLayer[index]);
but it doesn't work
|
|
|
|
patrick.sender
|
|
Problem is fixed. Sorry, my fault.
_ShapeLayer.Insert(index, layer); Map1.Layers.Add(_ShapeLayer[index]);
|
|
|