poly =
new google.maps.Polyline(polyOptions);poly.setMap(basemap);
google.maps.event.addListener(basemap,
'click', drawLine);function drawLine(event){ var newpath = poly.getPath();
newpath.push(event.latLng);
// <= Exception thrown at this linenewestmarker =
new google.maps.Marker({position: event.latLng,
title:
'#' + newpath.getLength(),map: basemap
});
}
Does anyone have any ideas as to what I might be missing? I've searched the forum and could not find any other cases of this exception being thrown. Thanks!
Rick
--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/dOV6ETcn4z4J.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/nMhoYYWw3qQJ.