You can simply add new markers by creating a new latlng point with the
LatLng constructor and next creating a new marker with the Marker
constructor.

        var markerLatLng = new google.maps.LatLng(52.02235, 8.54339);
        var marker0 = new google.maps.Marker({
         position: markerLatLng,
         title: 'your tooltip title',
         map: map
        });
        var markerLatLng = new google.maps.LatLng(52.03646, 8.4951);
        var marker1 = new google.maps.Marker({
         position: markerLatLng,
         title: 'your tooltip title',
         map: map
        });

and so on...


> Also, how do I attach the marker map to my main map so that the
> locations appear when the direction results appear.

Don't know what you mean...?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to