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

Last change on this file since 5173 was 5173, checked in by mervart, 11 years ago
File size: 593 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 marker = new google.maps.Marker({
17 map: map,
18 position: new google.maps.LatLng(lat, lon),
19 // icon: jsonObj.icon
20 });
21}
22
23function gotoLocation(lat, lon) {
24 var position = new google.maps.LatLng(lat, lon);
25 map.setCenter(position);
26 marker.setPosition(position);
27}
28
Note: See TracBrowser for help on using the repository browser.