I want to give a button on the infowindow of each marked to include that
point in the path. But i cannot call function with parameter in the html.
infowindow.setContent('<input onclick="addPlace(place.geometry.location)"
value="Add to route" type="button">');
The function addPlace is not called as it gives the error that place is
undefined object, but it works for the following
infowindow.setContent(place.geometry.location);
how to call addPlace in html content by passing a parameter used in
javascript
--
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/-/OLGc4BxX8-AJ.
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.