~ubuntu-branches/ubuntu/precise/gwibber/precise-proposed

« back to all changes in this revision

Viewing changes to ui/map.html

  • Committer: Bazaar Package Importer
  • Author(s): Fabien Tassin
  • Date: 2009-02-20 14:45:57 UTC
  • Revision ID: james.westby@ubuntu.com-20090220144557-xmhe71jdn1mf7yo9
Tags: upstream-0.8
ImportĀ upstreamĀ versionĀ 0.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
2
<html>
 
3
   <head>
 
4
      <title></title>
 
5
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
6
 
 
7
      <script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2"></script>
 
8
 
 
9
      <script type="text/javascript">
 
10
         var map = null;
 
11
 
 
12
         function LoadMap(lat, lon)
 
13
         {
 
14
            map = new VEMap('myMap');
 
15
            map.HideDashboard();
 
16
            map.LoadMap(new VELatLong(lat, lon), 8, VEMapStyle.Road, false);
 
17
         }
 
18
 
 
19
         function AddPin(lat, lon, title, description, icon)
 
20
         {
 
21
            var position = new VELatLong(lat, lon);
 
22
            var pin = map.AddPushpin(position);
 
23
 
 
24
            pin.SetTitle(title);
 
25
            pin.SetDescription('<img src="'+icon+'" />' + description);
 
26
            pin.SetCustomIcon(icon);
 
27
         }
 
28
      </script>
 
29
   </head>
 
30
   <body style="margin:0px; padding:0px;">
 
31
      <div id='myMap' style="width:900px; height:900px"></div>
 
32
   </body>
 
33
 </html>