views:

94

answers:

0

The following code:

<body onload="GetMap()">
    <script type="text/javascript" src="https://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6&amp;s=1"&gt;&lt;/script&gt;

    <script type="text/javascript">
        var map = null; 
        function GetMap() { 
            map = new VEMap('myMap');
            map.LoadMap();
        } 
    </script>
    <div id='myMap' style="position:relative; width:400px; height:400px;"></div>
</body>

works fine in plain old html, but when I try and use it in an ASP.NET MVC ViewPage, the map portion doesn't render. It's just a grey box with non-functioning controls along the top. Has anyone discovered this problem?