On Oct 21, 3:30 pm, backpages <[EMAIL PROTECTED]> wrote:
> Perfect! Thank you very much. If I want to add two should I just do it
> like this:
>
> function load() {
> if (GBrowserIsCompatible()) {
> var map = new GMap2(document.getElementById("map"));
> map.setCenter(new GLatLng(33.96,-83.99), 5);
> map.addOverlay(new GMarker(new GLatLng(33.96,-83.99)));
> map.addOverlay(new GMarker(new GLatLng(36.145213,-86.81374)));
> }
> }
Did you try it? If it doesn't work, post a link to a map that shows
the problem (per the suggested posting guidelines).
>
> Or is there a way to add 2 markers within on line of code?
No (well, if you have them defined in a kml file...). The way you did
it should work.
-- Larry
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---