/// <summary>
/// Gets or sets the zoom level.
/// </summary>
/// <value>The zoom level.</value>
[Browsable(true)]
[Category("Map Settings")][WebPartStorage(Storage.Shared)]
[FriendlyName("Zoom level")][Description("The zoom level of the Virtual Earth control.")]public int ZoomLevel { get { return _zoomlevel;
}
set { if (value < 1 || value > 19) { throw new WebPartPageUserException("can't be less than 1 or greater than 19!"); }
_zoomlevel = value;
}
}
/// <summary>
/// Gets or sets a value indicating whether to auto zoom.
/// </summary>
/// <value><c>true</c> if auto zoom is enabled; otherwise, <c>false</c>.</value>
[Browsable(true)]
[Category("Map Settings")][WebPartStorage(Storage.Shared)]
[FriendlyName("Auto Zooming")][Description("Sets the zoom level of the Virtual Earth control to a level where all pushpins are visible if set to true")]public bool AutoZoom { get { return _autoZoom;
}
set { _autoZoom = value;
}
}
/// <summary>
/// Gets or sets a value indicating whether to fix the map.
/// </summary>
/// <value><c>true</c> if the map should be fixed; otherwise, <c>false</c>.</value>
[Browsable(true)]
[Category("Map Settings")][WebPartStorage(Storage.Shared)]
[FriendlyName("Fixed")][Description("Disables client interactions with the Virtual Earth control if set to true")]public bool Fixed { get { return _fixed;
}
set { _fixed = value;
}
}
/// <summary>
/// Gets or sets a value indicating whether to show the info box.
/// </summary>
/// <value><c>true</c> if info box is to be shown; otherwise, <c>false</c>.</value>
[Browsable(true)]
[Category("Map Settings")][WebPartStorage(Storage.Shared)]
[FriendlyName("Show Info Box")][Description("Shows the info box of the last added pushpin with a description, on open")]public bool ShowInfoBox { get { return _showInfoBox;
}
set { _showInfoBox = value;
}
}
/// <summary>
/// Gets or sets the size of the dashboard.
/// </summary>
/// <value>The size of the dashboard.</value>
[Browsable(true)]
[Category("Map Settings")][WebPartStorage(Storage.Shared)]
[FriendlyName("Dashboard size")][Description("The size of the virtual earth dashboard")]public VEDashboardSize DashboardSize { get { return _dashBoardSize;
}
set { _dashBoardSize = value;
}
}