Alexandru Matei


When the map loads, calling SetMapView() causes the status of the bird's eye icon on the dashboard to be incorrect.

I am sure the reason is related to some asynchronous calculations that the Earth Map Control is performing when the map loads.

What I don't like is that the bird's eye icon on the dashboard is enabled, which is wrong when the map loads.

<html >


<title>Incorrect status of the Bird's Eye View icon when the map loads</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script src=' v=5'></script>

<script type="text/javascript">

var map = null;

var latitude = 53.2290;

var longitude = -1.4392;

var locs = new Array();

locs.push(new VELatLong(latitude+2,longitude+2));

locs.push(new VELatLong(latitude-2,longitude-2));

var zoomLevel=10;

function GetMap()


map = new VEMap('myMap');

map.LoadMap(new VELatLong(latitude, longitude), zoomLevel ,'r' ,false,VEMapMode.Mode2D);

if (checkboxTimeout.checked)


//this works correctly

window.setTimeout("DelayedSetMapView()", 1000);




//this works incorrectly




function DelayedSetMapView()




function OnLoadPage()




function OnUnloadPage()




function DisposeMap()



if (map != null)








<body onload="OnLoadPage();" onunload="OnUnloadPage();" >

<div style="z-index: 101; left: 24px; width: 480px; position: absolute; top: 472px;

height: 100px">

When the map loads, the bird's eye view icon on the dashboard is enabled.&nbsp;<br />

This is wrong, there is no bird's eye view at this zoom level.<br />

The icon should&nbsp; be disabled when the map loads.</div>

<div id='myMap' style="position:relative; width:488px; height:400px; left: 8px; top: 16px; z-index: 100;">


<input id="checkboxTimeout" style="z-index: 102; left: 32px; position: absolute;

top: 440px" type="checkbox" />

<div style="z-index: 103; left: 56px; width: 448px; position: absolute; top: 440px;

height: 16px">

Call SetMapView() with timeout when the map loads</div>