source: ntrip/trunk/BNC/src/map/html/mapview.js@ 5191

Last change on this file since 5191 was 5191, checked in by mervart, 11 years ago
File size: 919 bytes
Line 
1
2var map;
3var marker;
4
5function initialize(lat, lon) {
6
7 var myOptions = {
8 center: new google.maps.LatLng(lat, lon),
9 zoom: 17,
10 mapTypeId: google.maps.MapTypeId.SATELLITE,
11 panControl: true
12 };
13
14 map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
15
16 var image = new google.maps.MarkerImage("qrc:///map/html/crosshair.png",
17 null,
18 null,
19 null,
20 new google.maps.Size(40,40)
21 );
22 marker = new google.maps.Marker({
23 map: map,
24 position: new google.maps.LatLng(lat, lon),
25 icon: image,
26 });
27}
28
29function gotoLocation(lat, lon) {
30 var position = new google.maps.LatLng(lat, lon);
31 map.setCenter(position);
32 marker.setPosition(position);
33}
34
Note: See TracBrowser for help on using the repository browser.