Example #1
0
        protected override void Page_Load(object sender, EventArgs e)
        {
            base.Page_Load(sender, e);

            if (!string.IsNullOrEmpty(this.Request["navigator"]))
            {
                this.MapControlContainer.DisableNavigator = this.Request["navigator"] == "false";
            }

            if (!string.IsNullOrEmpty(this.Request["coords"]))
            {
                this.MapControlContainer.DisableCoords = this.Request["coords"] == "false";
            }

            if (!string.IsNullOrEmpty(this.Request["crosshair"]))
            {
                this.MapControlContainer.DisableCrosshair = this.Request["crosshair"] == "false";
            }

            if (!string.IsNullOrEmpty(this.Request["scalebar"]))
            {
                this.MapControlContainer.DisableScaleBar = this.Request["scalebar"] == "false";
            }

            if (this.MapStateSwitcher != null && !string.IsNullOrEmpty(this.Request["switcher"]))
            {
                this.MapStateSwitcher.Visible = this.Request["switcher"] != "false";
            }

            ClientScriptTools.EnsureScriptPresent(this.Page, typeof(API));
        }
Example #2
0
 protected override IDictionary <string, object> GetClientMapInfoItems()
 {
     return(new Dictionary <string, object>
     {
         { "sidebarId", String.Format("\"{0}\"", ClientScriptTools.Escape(this.Sidebar.ExtComponentId)) }
     });
 }