disable bird's eye
Is there a way I can turn off bird's eye view? This option was available in version 2 but I don't see anything in the SDK that allows this in version 3.
Thanks,
Scott
Is there a way I can turn off bird's eye view? This option was available in version 2 but I don't see anything in the SDK that allows this in version 3.
Thanks,
Scott
well, I couldn't find a way to "disable" it either. So I basically just put in a work around:
var s=map.GetMapStyle();
if (s == VEMapStyle.Birdseye) {
map.SetMapStyle(VEMapStyle.Hybrid);
}
this just sets the map to "hybrid" if the user opts to select "birdseye".... but this does not remove the display of the birdseye option on the map.
Hope that helps.
create your own control and don't give the user a birdseye option. The control is easy enough to hide:
map.HideDashboard();
Adding a new control just requires you creating the control and adding it to the map:
var el = document.createElement("div");
el.style.top ="10px";
el.style.left = "10px";
el.style.border = "2px solid black";
el.style.background = "White";
el.innerHTML = "new nav control context";
map.AddControl(el);
Then, you just need to set the innerHTML to reference the approriate VE API methods. For instance, if you just want to let the user go between Road and Aerial, you could go:
el.innerHTML = "<a href=\map.SetMapStyle(VEMapStyle.Road)\">Road</a> | <a href=\map.SetMapStyle(VEMapStyle.Hybrid)\">Hybrid</a>";
Check out the SDK (http://dev.live.com/virtualearth/sdk) for more information on how to work with map styles, zooming, and panning.