Index: trunk/BNC/src/map/map_gm.html
===================================================================
--- trunk/BNC/src/map/map_gm.html	(revision 5208)
+++ trunk/BNC/src/map/map_gm.html	(revision 5208)
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta name="viewport" content="initial-scale=1.0, user-scalable=yes" />
+
+    <style type="text/css">
+        * { margin: 0; padding: 0; }
+        html { width: 100%; height: 100%; }
+        body { width: 100%; height: 100%; }
+        #map_canvas { width: 100%; height: 100%; background-color: gray; }
+    </style>
+
+    <script>
+      var map;
+      var marker;
+      
+      function initialize(lat, lon) {
+      
+        var myOptions = {
+          center:     new google.maps.LatLng(lat, lon),
+          zoom:       17,
+          mapTypeId:  google.maps.MapTypeId.SATELLITE,
+          panControl: true
+        };
+      
+        map    = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
+      
+        var image = new google.maps.MarkerImage("qrc:///map/html/crosshair.png",
+                                                null, 
+                                                null,
+                                                new google.maps.Point(20, 20),
+                                                new google.maps.Size(40,40)
+                                               );
+        marker = new google.maps.Marker({
+          map:      map,
+          position: new google.maps.LatLng(lat, lon),
+          icon:     image,
+        });
+      }
+      
+      function gotoLocation(lat, lon) {
+        var position = new google.maps.LatLng(lat, lon);
+        map.setCenter(position);
+        marker.setPosition(position);
+      }
+    </script>
+
+    <script type="text/javascript"
+      src="http://maps.googleapis.com/maps/api/js?sensor=false">
+    </script>
+
+  </head>
+  <body>
+    <div id="map_canvas">Waiting for data...</div>
+  </body>
+</html>
Index: trunk/BNC/src/map/map_osm.html
===================================================================
--- trunk/BNC/src/map/map_osm.html	(revision 5208)
+++ trunk/BNC/src/map/map_osm.html	(revision 5208)
@@ -0,0 +1,67 @@
+<!DOCTYPE HTML>
+<html>
+
+  <head>
+    <title>BNC OpenStreetMap View</title>
+    <style type="text/css">
+      html, body, #basicMap {
+          width: 100%;
+          height: 100%;
+          margin: 0;
+      }
+    </style>
+
+    <script src="http://openlayers.org/api/OpenLayers.js" ></script>
+
+    <script>
+      var map;
+      var markers;
+      var marker;
+      var icon;  
+      var fromProjection;
+      var toProjection;
+
+      function initialize(lat, lon) {
+        map = new OpenLayers.Map("basicMap",
+                                 {controls:[
+                                  new OpenLayers.Control.Navigation(),
+                                  new OpenLayers.Control.PanZoomBar()]});
+        fromProjection = new OpenLayers.Projection("EPSG:4326");   // WGS 1984
+        toProjection   = new OpenLayers.Projection("EPSG:900913"); // Spherical Mercator
+
+        var mapnik   = new OpenLayers.Layer.OSM();
+        var position = new OpenLayers.LonLat(lon, lat).transform(fromProjection, toProjection);
+        var zoom     = 15; 
+ 
+        map.addLayer(mapnik);
+
+        var size    = new OpenLayers.Size(40,40);
+        var offset  = new OpenLayers.Pixel(-size.w/2, -size.h/2);
+
+        icon    = new OpenLayers.Icon("qrc:///map/html/crosshair.png", size, offset);
+        markers = new OpenLayers.Layer.Markers("Markers");
+        marker  = new OpenLayers.Marker(position, icon);
+        markers.addMarker(marker);
+        
+        map.addLayer(markers);
+
+        map.setCenter(position, zoom);
+      }
+
+      function gotoLocation(lat, lon) {
+        var position = new OpenLayers.LonLat(lon, lat).transform(fromProjection, toProjection);
+        map.setCenter(position);
+        markers.removeMarker(marker);
+        marker = new OpenLayers.Marker(position, icon);
+        markers.addMarker(marker);
+      }
+
+    </script>
+
+  </head>
+
+  <body>
+    <div id="basicMap"></div>
+  </body>
+
+</html>
