When Google and Microsoft work hand in hand. Lately, I feel that in the lap of
Microsoft
we ' moves more and more, sometimes further measures, what is done in Google
. Yet I am told that there probably land or both offers are complementary.
Right now for example, I work at my client with the component JavaScript
Virtual Earth which, as everyone should already know, view beautiful geographical maps with zoom, interactive navigation and all the little sexy things that Google Maps aficionados
appreciate.
Now imagine that you do not want only
or even to predict the trip by car to get to your next holiday destination but wish for your BI project display your current indicators whatsoever on a nice card all on a single webpage ...
Well, I'm sure you see me coming with my clogs ... Then take a small dose of Virtual Earth and a hint of Google Charts
and then we get something in the taste:
-
-
And for those wondering how to do this kind of thing here is the code, after all, very simple:
\u0026lt;! DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Transitional / / EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title> Virtual Earth </title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2&mkt=fr-FR"></script>
<script type="text/javascript">
function initialize() {Map = new
VEMAP ('mymap'); ParisLatLong var = new VELatLong (48.8667, 2.3333);
map.LoadMap (ParisLatLong)
map.Resize (800, 600);
map.SetZoomLevel (7);
map.setCenter (ParisLatLong)
newShape var = new VEShape (VEShapeType.Pushpin, ParisLatLong)
newShape.SetTitle ("Distribution of means of transport in Paris");
newShape.SetDescription ('\u0026lt;img src = "http://chart.apis.google.com/chart?chtt=un+beau+spacer&chts=ffffff&chs=200x100&chf=bg, s, FFFFFF & cht = p3 & chd = t: 56.00, chl = 40.00,4.00 & Autos alt="My google chart" />');
map.AddShape(newShape);
}
</script>
<style type="text/css">
HTML, BODY, FORM {margin:0; padding:0; height:100%; width:100%;}
</style>
</head>
<body onload="initialize();">
<form name="form1" method="post" action="Default.aspx" id="form1">
<div id="myMap" style="position:relative; width:100%; height:100%"/>
\u0026lt;/ form>
\u0026lt;/ body>
\u0026lt;/ html>
course I gave free rein to your imagination to make your cards even more interactive BI and of course attractive to users.
I would give you two links which I thought very interesting:
Google Chart Creator to create your graphs quickly
Virtual Earth Map Control SDK 6.2 documentation offline