Microsoft Live Map Example
Published: 2007-04-13
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>
RECENT ARTICLES
Lightweight blog created on Ruby/GAA/Datastore stack
Put this together a month or two back but never got around to replaci... read more
Using Node JS and Couch DB Stack for Web Dev
With the recent hype surrounding Node.js I thought I'd better get my ... read more
Campaign Monitor API Using PHP and SOAP
Campaign Monitor has a fairly comprehensive API and support docs.&nbs... read more
Google Maps Snippet
Absolute bare basics when it comes the Google Map api but a snippet o... read more
CREDITS
powered by php-wax the php framework