Howdy,
Building an ASP.NET page w/ C# back end. Using the GoogleMap Control
from artem. Works well, but I can't get it to cluster markers, and
can't find any documentation outside the video....
Anybody build a clustering funciton in C# that I could reference? I
don't mind using the clusterer js, but don't know how to mix the code,
as I dynamically create markers from SQLServer.... Example:
foreach (DataRow drRow in dtResult.Rows)
{
// create a google marker for each location matching
filter criteria
GoogleMarker marker = new GoogleMarker();
try
{
String InfoText = "<div id='infowindow'>";
InfoText = InfoText + "<b>" +
drRow["UnitTitle"].ToString() + "</b>";
InfoText = InfoText + "<br />" +
drRow["Address1"].ToString();
InfoText = InfoText + "<br />" +
drRow["CityName"].ToString() + ", " + drRow["StateCode"].ToString() +
" " + drRow["ZipCode"].ToString() + "<br />";
InfoText = InfoText + "<br />" + "<a
href='javascript:alert(\"redirect to contact info - need related tables
\");'>Contact Information</a>";
InfoText = InfoText + "<br />" + "<a
href='javascript:alert(\"redirect to jurisdiction map
\");'>Jurisdiction Map</a>";
InfoText = InfoText + "<br />" + "<a
href='javascript:alert(\"redirect to final documents - need related
tables\");'>Final Documents</a>";
InfoText = InfoText + "</div>";
marker.Latitude = (double)
(decimal)drRow["AddressLatitude"];
marker.Longitude = (double)
(decimal)drRow["AddressLongitude"];
marker.Text = InfoText ;
marker.Title = (string)drRow["UnitTitle"];
marker.IconAnchor = new GooglePoint(4, 4);
marker.IconSize = new GoogleSize(8, 8);
marker.InfoWindowAnchor = new GooglePoint(8, 1);
marker.IconUrl = "/Images/NCAD/Icons/" +
drRow["UnitTypeID"] + ".png";
GoogleMap1.Markers.Add(marker);
}
catch
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.