I am facing an issue with displaying the Bing map code on a website built using HTML5, CSS3, and jQuery. I am utilizing the SDK AJAX v.7 to generate the code.
The problem arises when I attempt to insert the code provided (along with my personal key) and coordinates into the site, as the map fails to show up and instead remains grey...
I have tried updating the jquery.min.js file and even renaming the doctype to XHTML, but unfortunately, the issue persists.
Below is the script code in question:
<script charset="UTF-8" type="text/javascript" src="https://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&s=1"> </script>
<script type="text/javascript">
var map = null;
function getMap()
{
map = new Microsoft.Maps.Map(document.getElementById('myMap'), {credentials: 'mycode', center: new Microsoft.Maps.Location(39.801646 , 15.797405), zoom: 8});
}
</script>