stanM


Hi,

If I put 2 maps on one page as discussed in one of the previous posts

everything is fine.

However, if I switch one map to 3D view everything is fine again but if I switch the 2-d map to the 3D view a message in red appears " Return to the previous window for an active map view"

So, it appears that 2 3D maps are not behaving the same way s 2 2D maps.

Why is that - a bug a feature

stan

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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;
var map2 = null;

function GetMap()
{
map = new VEMap('myMap');
map.LoadMap();
map2 = new VEMap('myMap2');
map2.LoadMap();
}
</script>
</head>
<body onload="GetMap();">
<div id='myMap' style="position:relative; width:400px; height:400px;"></div>
<div id='myMap2' style="position:relative; width:400px; height:400px;"></div>
</body>
</html>




Re: multiple 3D maps on a page

wjcyg


The same thing happens if you open 2 tabs in IE7 and try to open 3D maps on each of them.

The thing that you need to remember (Assuming of course that I understand this properly ) is that a 3D map is controlled by a separate program installed to your computer the first time you use it, while 2D maps are all handled by a browser control, with no additional computer involvement than is usually present with a web application that uses javascript.

The resource use of the 3D map is pretty intense, so having 2 independent ones might be a bad thing anyway, but it appears that this version does not allow that by design.

Walt






Re: multiple 3D maps on a page

stanM

Walt,

You have a point about the separate program handling 3D, however if I start 2 browser instances and navigate to the same map page and then switch any of them to 3D everything is fine again.

So, what is the difference here it is the same program on the same computer

Stan






Re: multiple 3D maps on a page

Derrick (MSFT)

The current limitation of 3D map is that you can only have 1 instance of it on the same browser. This might change in the future, but the current versions does not allow it.




Re: multiple 3D maps on a page

stanM

Thank you for clarifying that Derrick.

I thought that I was doing something wrong in my code.

Stan