When I implemented the Bing map to view it was working fine when I moved the same code to Popup(modal) window its showing like below: Bing map is not showing location
I am using:
<script charset="UTF-8" type="text/javascript"
src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2&mkt=en-us">
</script>
<div id="myMap"
style="position: relative!important;width:400px;height:400px;"
class="span9">
</div>
and:
$m(document).ready(function () {
var map = null;
var myMap = document.getElementById("myMap");
myMap.style.display = '';
map = new VEMap('myMap');
map.SetDashboardSize(VEDashboardSize.Large);
map.LoadMap(new VELatLong(43.79488907226601, -121.014), 10);//, VEMapStyle.Road, false, VEMapMode.Mode2D, true, 1);//oint, zoom, style, fixed, mode, showSwitch, tileBuffer
//Add pushpin
var pin = new VEShape(VEShapeType.Pushpin, new VELatLong(43.79488907226601, -121.014));
pin.SetCustomIcon(null);
pin.SetTitle('Test');
pin.SetDescription("<br/>" + "<strong>Desp : Latitude:</strong>" + "<br/>" + "<strong>Longitude:</strong>");
map.AddShape(pin);
map.ShowDashboard();
});
Please let me know what is going wrong when I moved code to pop-up