How do i plot markers on google map using Google Map with C sharp.
The code which i have written not even display the map, it just
displays a blue area
Here is the code i am using
public void loadMap()
{
string mapCommand = "";
GoogleIcon icon = new GoogleIcon();
icon.ID = "iconId2903";
GoogleMarker marker = new GoogleMarker("MarkerId2902392",
new GoogleLatLng( 19.035588, 72.852831));
marker.Options = new GoogleMarkerOptions(icon);
mapSpeedReport.Overlays.Add(marker);
mapCommand += mapSpeedReport.AddOverlay(marker);
mapCommand += mapSpeedReport.AddIcon(icon);
mapCommand += mapSpeedReport.SetCenter(new
GoogleLatLng(19.035588, 72.852831));
ChangeMap(mapCommand);
}
public void ChangeMap(string mapCommand)
{
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "meraMap",
mapCommand, true);
}
}
the same can be achieved using vb.net but not in c sharp...
--
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.