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

[185 byte] By [cptscottie] at [2008-2-28]
# 1

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.

pimpinonline at 2007-8-30 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 2

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.

TylerDavey at 2007-8-30 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 3
Placeing the new control on the map is a very method.
I want to hide the dashboard and allow only zoom functionalities.
i created two images as links to call zoomin and zoom out functions.
it is working perfectly, but the images are not attached to the map. as i dynamically generate maps using Ajax, the positioning of the map moves and the zoomin/out images(links) move! Though it is attached to the map?? weird!
ne clues?
guest at 2008-1-18 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 4
Placeing the new control on the map is a very GOOD method. Thankyou-
guest at 2008-1-18 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...

Windows Live Developer Forums

Site Classified