// MapstractionComponent.cs // // Classes: // public MapstractionComponent // // Created By: // jcz 2008-01-03 // // Modification History: // // using System; using System.Data; using System.Configuration; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using Castle.MonoRail.Framework; using MapstractionViewComponentWeb.Model; namespace MapstractionViewComponentWeb.Components { [ViewComponentDetails("Mapstraction", Sections = "CenterPointBubbleHtml,NearbyPointBubbleHtml")] public class MapstractionComponent : ViewComponentBase { private const int DEFAULT_ZOOM_LEVEL = 9; [ViewComponentParam] public string Name { get; set; } [ViewComponentParam] public string Container { get; set; } [ViewComponentParam] public string Provider { get; set; } [ViewComponentParam] public Location CenterPoint { get; set; } [ViewComponentParam] public Location[] NearbyPoints { get; set; } public override void Render() { //default names if (string.IsNullOrEmpty(Name)) Name = "mapstraction"; if (string.IsNullOrEmpty(Container)) Container = "mapstraction"; RenderTextLine(""); } } }