コード例 #1
0
        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;
        }
コード例 #2
0
 public ShapeFileLayerUI(ShapeFileRenderer layer)
 {
     this.layer = layer;
 }
コード例 #3
0
 public ShapeFileLayerUI(ShapeFileRenderer layer)
 {
     this.layer = layer;
 }