Beispiel #1
0
 public void SetTileInfo(TileInfo tileinfo)
 {
 }
Beispiel #2
0
        public TileInfo DeepClone()
        {
            var other = new TileInfo();

            other.Name = Name;
            other.Description = Description;
            other.MinZoom = MinZoom;
            other.MaxZoom = MaxZoom;
            other.Bounds = (double[])Bounds.Clone();
            other.Center = Center != null ? (double[])Center.Clone() : null;
            other.Format = Format;
            other.Scheme = Scheme;
            if (VectorLayers != null)
            {
                other.VectorLayers = new List<VectorLayer>();
                foreach (var layer in VectorLayers)
                {
                    var otherLayer = new VectorLayer()
                    {
                        Id = layer.Id,
                        Description = layer.Description
                    };
                    if (layer.Fields != null)
                    {
                        otherLayer.Fields = new Dictionary<string, string>();
                        foreach (KeyValuePair<string, string> item in layer.Fields)
                        {
                            otherLayer.Fields[item.Key] = item.Value;
                        }
                    }
                }
            }
            return other;
        }