I'm trying to create a streetview in a separate div container using:
view.map.streetView.svp = new
google.maps.StreetViewPanorama(document.getElementById(containerId), {
position : latLng,
pov: {
heading: heading | 34,
pitch: pitch | 10,
zoom: 1
}
});
But I only want to display the div if there is a streetview at the specified
latLng. But I can't find any property or method to get the result. Only thing
that happens now is that streetview get "display:none" after a while.
The only property that seems to be changing is
view.map.streetView.svp.projection, but it only gets changed after the is
completely loaded. And my code for hiding the div container has already been
invoked.
Does anyone know a workaround for this except using setTimeout?
..fredrik
--
Fredrik Bonander
[email protected]
+46 70 943 5441
- the infinite power of the creative mind -
--
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.