public GoogleObject(GoogleObject prev)
 {
     Points              = GooglePoints.CloneMe(prev.Points);
     Polylines           = GooglePolylines.CloneMe(prev.Polylines);
     Polygons            = GooglePolygons.CloneMe(prev.Polygons);
     ZoomLevel           = prev.ZoomLevel;
     ShowZoomControl     = prev.ShowZoomControl;
     ShowMapTypesControl = prev.ShowMapTypesControl;
     Width       = prev.Width;
     Height      = prev.Height;
     MapType     = prev.MapType;
     APIKey      = prev.APIKey;
     ShowTraffic = prev.ShowTraffic;
     RecenterMap = prev.RecenterMap;
 }
Beispiel #2
0
    public static GooglePolylines CloneMe(GooglePolylines prev)
    {
        GooglePolylines p = new GooglePolylines();

        for (int i = 0; i < prev.Count; i++)
        {
            GooglePolyline GPL = new GooglePolyline();
            GPL.ColorCode = prev[i].ColorCode;
            GPL.Geodesic  = prev[i].Geodesic;
            GPL.ID        = prev[i].ID;
            GPL.Points    = GooglePoints.CloneMe(prev[i].Points);
            GPL.Width     = prev[i].Width;
            p.Add(GPL);
        }
        return(p);
    }
Beispiel #3
0
    public static GooglePolygons CloneMe(GooglePolygons prev)
    {
        GooglePolygons p = new GooglePolygons();

        for (int i = 0; i < prev.Count; i++)
        {
            GooglePolygon GPL = new GooglePolygon();
            GPL.FillColor     = prev[i].FillColor;
            GPL.FillOpacity   = prev[i].FillOpacity;
            GPL.ID            = prev[i].ID;
            GPL.Status        = prev[i].Status;
            GPL.StrokeColor   = prev[i].StrokeColor;
            GPL.StrokeOpacity = prev[i].StrokeOpacity;
            GPL.StrokeWeight  = prev[i].StrokeWeight;
            GPL.Points        = GooglePoints.CloneMe(prev[i].Points);
            p.Add(GPL);
        }
        return(p);
    }
Beispiel #4
0
 public GoogleObject(GoogleObject prev)
 {
     try
     {
         Directions          = prev.Directions;
         Points              = GooglePoints.CloneMe(prev.Points);
         Polylines           = GooglePolylines.CloneMe(prev.Polylines);
         Polygons            = GooglePolygons.CloneMe(prev.Polygons);
         ZoomLevel           = prev.ZoomLevel;
         ShowZoomControl     = prev.ShowZoomControl;
         ShowMapTypesControl = prev.ShowMapTypesControl;
         Width       = prev.Width;
         Height      = prev.Height;
         MapType     = prev.MapType;
         APIKey      = prev.APIKey;
         ShowTraffic = prev.ShowTraffic;
         RecenterMap = prev.RecenterMap;
         AutomaticBoundaryAndZoom = prev.AutomaticBoundaryAndZoom;
     }
     catch (Exception)
     {}
 }