Hi I am very new to google map and I am using .Net libraries
Artem.GoogleMap.dll and Artem.GoogleMap.Extensions.dll.. The only
problem I am facing is the marker position over google map is not
correct. That is normally it points to a different street on google
map rather than the actual street in the address. When I checked it
with googlemaps.com, it shows the right and exact position. I dont
know where I am doing mistake in the code. The code is here:
if (dt.Rows.Count > 0)
{
foreach (DataRow dr in dt.Rows)
{
Artem.Web.UI.Controls.GoogleMarker item = new
Artem.Web.UI.Controls.GoogleMarker();
//item.Address = dr["ZipCode"].ToString() + "," +
dr["CityName"].ToString() + "," + dr["StateName"].ToString() + "," +
dr["countryName"].ToString();
item.Address = dr["Address"] + "," +
dr["CityName"].ToString() + "," + dr["ZipCode"].ToString() + "," +
dr["StateName"].ToString() + "," + dr["countryName"].ToString();
item.Title = dr["companyName"].ToString();
companyName=dr["companyName"].ToString();
companyName = companyName.Replace(" ", "-");
item.Text = "<a href=\"Browse/" + companyName + "/
Web\"><img src=\"" + imagePathForHTML(dr["LogpPath"].ToString()) + "\"
width=\"143\" height=\"78\" /><br /><b>" +
dr["companyName"].ToString() + "</b></a><br />" +
dr["Address"].ToString() + "<br />" + dr["ZipCode"].ToString();
GoogleMap1.Markers.Add(item);
}
}
please let me know if I have to make any change to correct the marker
position.
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" 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.