Can anyone please direct me to how I can show a map if street view
isn't available? Currently, I have the street view working, but I
can't even figure out where to start with how to approach getting a
map to show if the street view isn't available
Here's what I have so far-
var myPano = new GStreetviewPanorama(document.getElementById
("map_canvas"));
coords = new GLatLng(<?php echo $coord['lat'];?>,<?php echo
$coord['lng'];?>);
myPOV = {yaw:370.64659986187695,pitch:-20};
myPano.setLocationAndPOV(coords, myPOV);
I'm guessing I need to use "hasStreetviewData", but I can't figure out
how to implement that. If it returns false, I would load my map
function, and if it returns true, I would load my street view
function, or that's what I currently have in mind at least.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---