Hi. I have problem about showing google map in XmlHttpPanel. I have google map control from
http://th.googlemaps.subgurim.net/
This is .aspx page
This is aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Subgurim.Controles;
public partial class Test : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void RadXmlHttpPanel1_ServiceRequest(object sender, Telerik.Web.UI.RadXmlHttpPanelEventArgs e)
{
Label1.Text = "Label updated by XmlHttpPanel callback at: " + DateTime.Now.ToString();
//access the callback value from the client on the server using the e.Value property
Label1.Text += "<br/> The returned value fron the client's set_value() function is: <strong>" + e.Value + "</strong>";
GMap1.Version = "2";
GMap1.enableDragging = false;
GMap1.enableGoogleBar = false;
GMap1.Language = "th";
GMap1.setCenter(new GLatLng(13.7729, 100.4857), 14);
GMap1.enableHookMouseWheelToZoom = false;
//GMap1.mapType = GMapType.GTypes.Hybrid;
GMap1.addControl(new GControl(GControl.preBuilt.MapTypeControl));
GMap1.enableRotation = true;
GMap1.enableDragging = true;
}
}
Problem: At first page load google map can be display but when i click button google map can't display (background is gray colour). You can see image in attach file.
Please advise.
Thank you for your help.
Nott