How can I set the birds eye view as a default?
I have been playing around with the code in the new web SDK.
I'm excited that I'll be able to pass a lat long over to get the map.
But when I go to the map it is always set as regular view, not the birds eye view.
How can I set the birds eye view as a default view?
Thanks!
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=5"></script>
<script>
var map = null;
function GetMap()
{
map = new VEMap('myMap');
map.LoadMap();
var latLong = new VELatLong(33.5074070839019, -111.94647789001467);
map.SetCenterAndZoom(latLong, 19);
map.SetMapStyle("o");
}
function SetBirdseyeOrientation(orientation)
{
style = map.GetMapStyle();
if (style == "o")
{
map.SetBirdseyeOrientation(orientation);
var be = map.GetBirdseyeScene();
var id = be.GetID();
var link = "<a href='#' onclick='SetBirdseyeScene(" + id + ")'>" + id + "</a><br />";
idList.innerHTML += link;
}
else alert("Please set the map to bird's eye view to use this feature.");
}
function SetBirdseyeScene(bsid)
{
map.SetBirdseyeScene(bsid);
}
</script>
</head>
<body onload="GetMap();" style="font-family:Arial">
<div id='myMap' style="position:relative; width:400px; height:400px;"></div>
<div id='buttons' style="text-align:center; width:400px">
Set Birdseye Orientation<br />
<input id="btnNorth" type="button" value="N" onclick="SetBirdseyeOrientation('North')"><br />
<input id="btnWest" type="button" value="W" onclick="SetBirdseyeOrientation('West')">
<input id="btnEast" type="button" value="E" onclick="SetBirdseyeOrientation('East')"><br />
<input id="btnSouth" type="button" value="S" onclick="SetBirdseyeOrientation('South')">
</div>
<b>Bird's eye scene ID's:</b>
<div id="idList"></div>
</body>
</html>

