function load()
{
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(15.73, 73.48), 5);
map.addControl(new GMapTypeControl());
for (var i = 0; i < 10; i++)
{
var point = new GLatLng(<%=lat %>,<%=longi %>);
map.addOverlay(new GMarker(point));
}
}
the .cs file contains
protceted string lat,longi;
StreamReader sr1 = new StreamReader("abc.txt");
input = sr1.ReadLine();
char[] seps = { ',' };
string[] pieces = input.Split(seps);
foreach (string piece in pieces) ;
lat = pieces[3];
longi = pieces[4];
sr1.close()
this is the code i have as of now, its a stand alone application, i
have no link, i could not find anything in the examples that matches
my needs.. the values that i am getting are dynamic and so i cannot
create an xml file either..
in the above code i need multiple values of lat n longi to be
plotted.. an example showed that i can get multiple points plotted by
putting a for loop in the .asp page but that only plots the last
value.
is there a way that the GlatLng function can take an array of points
as an input?
Unfortunately i dont have more code to show, am a beginner with these
maps and dont know how t go about this, thanks for all your help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---