On Apr 9, 2:38 pm, behrouz hoseini <[email protected]> wrote:
> I used this javascript to add a marker on my map.But I have to add 8 more
> marker with diffrent long /lat at the same time.could you please tell how I
> can use array at this code?!
>
> <script type="text/javascript">
>       var vanmap = null;
>       function Nimbo() {
>       vanmap = new gmap2(document.getElementById("vanmap"));
>       var centerat = new GLatLng(49.2467, -123.1167);
>       vanmap.addControl(new GLargeMapControl());
>       vanmap.addControl(new vanmapTypeControl());
>       vanmap.setCenter(centerat, 13);
>       vanmap.enableScrollWheelZoom();
>       var tik = new GMarker(new GLatLng(49.2467, -123.1167));
>       vanmap.addOverlay(tik);
>       vanmap.addMarker(tik);
> </script>
>

Have you seen Mike Williams' tutorial?
http://econym.org.uk/gmap/

  -- 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to