Hi All,
I was unable to find something to answer my question in the API
resources, this group or googling in general, so firstly apologises if
the resource does infact exist and I failed to find it.
The documentation shows how to add a getTileUrl to the
StreetViewPanoramaData object which will then be called to retreive
the images for a custom streetviewpanorama.
What I wanted to be able to create a custom streetviewpanorama on the
fly based on an existing default streetviewpanorama. I know I can add
overlays to an existing panorama, but I wanted to be able to analyse
the scene on the fly to tailor how I would change scene in the custom
streetviewpanorama.
My question is how do I get the urls/images for a given street view
panorama, or indeed is this something the API currently supports?
My naive attempt looked something like this
<code>
var berkeley = new google.maps.LatLng(37.869085,-122.254775);
var sv = new google.maps.StreetViewService();
var panorama;
function initialize() {
sv.getPanoramaByLocation(berkeley, 500, processSVData);
}
function processSVData(data, status) {
if (status == google.maps.StreetViewStatus.OK) {
// print out the url for the tile (0,0) for the given
panorama, with 0 zoom
document.write(data.tiles.getTileUrl(data.location.pano,0.0,0,0));
} else {
alert("Street View data not found for this location.");
}
}
</code>
--
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.