I've developed Google map place search with autocomplete feature. Right now I'd like add another feature like current what Google map has: once user select an address from autocomplete drop down list, a street view image with street view link will appear on bottom of the autocomplete. Click it will bring user to street view which is more accurate than the pegman.
Right now my struggle is don't know how to create this street view image for my address and link it to street view mode.
Thanks
A function that does it:
function-arguments:
latLng
a
latLng
(e.g.geometry.location
) or something that evaluates to false(to remove the image)node
the element where the image should be rendered(should be empty, existing contents will be removed)
map
the
Maps
-instancesize
(optional)a string (as defined in https://developers.google.com/maps/documentation/staticmaps/#Imagesizes)
key
(optional)your API-key(when you use the key the Street View Image API must be enabled in the API-console)
Demo: http://jsfiddle.net/doktormolle/4x8gvfrx/