mercredi 25 février 2015

more than 300 markers not displayed on Google map in Chrome

I am using this http://ift.tt/1GsJ6Oy, to plot markers on the map, the issue that when the points exceed 300, nothing displayed on the map, specially when I use GP.InfoHTML


Here you are the code protected void InProgressTimer_Tick(object sender, EventArgs e) { DataTable dt = TicketBL.DrawTicketsDashboard(Convert.ToInt32(SessionManagement.OrgID)); Draw(dt); dt = null; TicketStatistics(); }



protected void Draw(DataTable table)
{
GoogleMapForASPNet1.GoogleMapObject.Points.Clear();
GooglePoint GP;

for (int i = 0; i <= table.Rows .Count -1 ; i++)
{
GP = new GooglePoint();
GP.ID = Convert.ToString(table.Rows[i]["TicketID"]);
GP.Latitude = Convert.ToDouble(table.Rows[i]["Latitude"]);
GP.Longitude = Convert.ToDouble(table.Rows[i]["Longitude"]);
//GP.InfoHTML = "<div id='infoWindow'>" +
// "<span class='infoWindowDiv'> TicketNumber: </span>" + Convert.ToString(table.Rows[i]["TicketNumber"]) + "<br>" +
// "<span class='infoWindowDiv'> TicketDate: </span>" + Convert.ToString(table.Rows[i]["TicketDate"]) + "<br>" +
// "<span class='infoWindowDiv'> Status: </span>" + Utilities.ViewValidDate(table.Rows[i]["Status"]) +
// "</div>";

if (Convert.ToInt32(table.Rows[i]["TicketStatusID"]) != 4)
GP.IconImage = "images/map_" + Convert.ToString(table.Rows[i]["TicketSeverityID"]) + ".gif";
else
GP.IconImage = "images/map_" + Convert.ToString(table.Rows[i]["TicketSeverityID"]) + ".png";
GoogleMapForASPNet1.GoogleMapObject.Points.Add(GP);
//Thred
}
}




Aucun commentaire:

Enregistrer un commentaire