/// <summary> /// Generates map code and registers Google javascript files. /// </summary> public void LoadMap() { #region "Map properties" // Set map properties CMSMapProperties mp = new CMSMapProperties(); mp.EnableMapDragging = EnableMapDragging; mp.ShowScaleControl = ShowScaleControl; mp.EnableServerProcessing = EnableServerProcessing; mp.EnableKeyboardShortcuts = EnableKeyboardShortcuts; mp.ShowZoomControl = ShowZoomControl; mp.ShowStreetViewControl = ShowStreetViewControl; mp.ShowMapTypeControl = ShowMapTypeControl; mp.ZoomControlType = ZoomControlType; mp.Latitude = Latitude; mp.Longitude = Longitude; mp.ZoomScale = ZoomScale; mp.Location = Location; mp.ToolTip = ToolTip; mp.IconURL = IconURL; mp.MapType = MapType; mp.Content = Content; mp.Height = Height; mp.Scale = Scale; mp.Width = Width; mp.MapId = ClientID; #endregion // Load map ltlGoogleMap.Text = BasicGoogleMaps.GenerateMap(mp, CacheMinutes, CacheItemName, InstanceGUID); }
/// <summary> /// Generates map code and registers Google javascript files. /// </summary> public void LoadMap() { #region "Map properties" // Set map properties CMSMapProperties mp = new CMSMapProperties(); mp.EnableMapDragging = this.EnableMapDragging; mp.ShowScaleControl = this.ShowScaleControl; mp.EnableServerProcessing = this.EnableServerProcessing; mp.EnableKeyboardShortcuts = this.EnableKeyboardShortcuts; mp.ShowNavigationControl = this.ShowNavigationControl; mp.ShowMapTypeControl = this.ShowMapTypeControl; mp.NavigationControlType = this.NavigationControlType; mp.Latitude = this.Latitude; mp.Longitude = this.Longitude; mp.ZoomScale = this.ZoomScale; mp.Location = this.Location; mp.ToolTip = this.ToolTip; mp.IconURL = this.IconURL; mp.MapType = this.MapType; mp.Content = this.Content; mp.Height = this.Height; mp.Scale = this.Scale; mp.Width = this.Width; mp.MapId = this.ClientID; #endregion // Load map this.ltlGoogleMap.Text = BasicGoogleMaps.GenerateMap(mp, this.CacheMinutes, this.CacheItemName, this.InstanceGUID); }