In the polyline array example at:

http://code.google.com/apis/maps/documentation/v3/overlays.html#PolylineArrays

Shouldn't the addLatLng function be:

function addLatLng(event) {
    pathCoordinates = poly.getPath();

    // Because path is an MVCArray, we can simply append a new
coordinate
    // and it will automatically appear
    pathCoordinates.insertAt(pathCoordinates.length, event.latLng);

    var marker = new google.maps.Marker({
      position: event.latLng,
      map: map
    });
    marker.setTitle("#" + pathCoordinates.length);
  }

Because as it is now pathCoordinates never changes from length zero
and all of the point markers get the same title of "#0"

-- 
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 [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-js-api-v3?hl=en.

Reply via email to