But if we want to add more than one marker to a Google Map what shall we do?
This question got into my mind when I was doing my Internet Programming coursework in the First year.
I browsed for a solution but I found very advanced piece of coding and most of them not working.
Because of this I wrote a simple coding for this.
The simple modification is as follows:
center=new Array(2);
marker=new Array(2);
center[0]=new GLatLng(7.181194, 79.883806);
center[1]=new GLatLng(6.8219444444,79.8861111111);
for(i=0;i<2;i++)
{
map.setCenter(center[i], 13);
marker[i] = new GMarker(center[i], {draggable: false});
map.addOverlay(marker[i]);
}
-Chandira
{
map.setCenter(center[i], 13);
marker[i] = new GMarker(center[i], {draggable: false});
map.addOverlay(marker[i]);
}
-Chandira
good article... Keep up the good work!!!
ReplyDeletegreat job punchi............ keep it up bro :)
ReplyDeleteGood job dude. Really learnt something :)
ReplyDeletegenius mind hmmm.....
ReplyDeletegood work! keep it up.
thanks everyone.....Is there any area to be developed?
ReplyDeletevery good article.can get more knowledge from ur article..:)
ReplyDelete