Microsoft Live Map Example

I'm quite a fan of Google Maps and its associated API but when comparing map quality in locations outside of the major UK cities Microsoft's Live Maps often come up trumps.  As a quick example here's the javascript source I used to generate a map for a recent project.

<script
 src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=5">
</script>
<script>
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
}
else {
window.onload = function() {
oldonload();
funct();
}
}
}
addLoadEvent(GetMap);

var map = null;
function GetMap();
map = new VEMap('myMap');
map.setDashboardSize(VEDashboardSize.Small);
map.LoadMap(new VELatLong(52.7747, -1.5645), 18 ,'h' ,false);
}
</script>
<div id='myMap'
style="position:relative; width:520px; height:300px;"></div>
 

More from this section

RECENT PERSONAL WORK

AllTradeArt Case Study
Kwik Travel Case Study
Allotment Case Study
Revolutionshirts Case Study

RECENT ARTICLES

Import Error: No module named django.core.management

Installing and testing the Django Framework on my new mac I came acro... read more

Quick Note on Setting Up a Mail Server

Part of the basics when setting up a mail server but I needed to put ... read more

Microformats Creator Tool

"Microformats are a way of adding simple markup to human-readable... read more

Recursive Directory Listing

Nothing too fancy but a nice way of viewing a directory tree on your ... read more

CREDITS

powered by php-wax the php framework