public static Layer LoadShapeFile(string path, string currentMap) { ShapeFile shapefile = new ShapeFile(path); shapefile.Read(); ShapeFileRenderer layer = new ShapeFileRenderer(shapefile); layer.Enabled = true; layer.Name = path.Substring(path.LastIndexOf('\\') + 1); LayerList.Add(layer.ID, layer); layer.ReferenceFrame = currentMap; AllMaps[currentMap].Layers.Add(layer); AllMaps[currentMap].Open = true; version++; LoadTree(); return layer; }
public ShapeFileLayerUI(ShapeFileRenderer layer) { this.layer = layer; }