this is my javascript code
Description += "<br><span class='descr'>Coordinate:</span> <span class='cont'><a href=\"" + mapsLink + "\" onclick=\"window.open('" + mapsLink + "')\">" + picRecords[index].getCoords() + "</span></a>";
and
var mapsLink = "https://maps.google.it/maps?q=" + picRecords[index].getLatitude() + "," + picRecords[index].getLongitude();
I would like that if a point (getLatitude,getLongitude) has street view open, another link on onClick.
Must I use some Google Maps API for this? which ?
thanks for the reply!
Yes you would have to use the Google Maps API for this
https://developers.google.com/maps/documentation/javascript/streetview#StreetViewService
The getPanoramaByLocation() function will tell you if there is a nearby panorama.