- Timestamp:
- Jun 17, 2013, 10:12:15 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/map/map_gm.html
r5212 r5245 14 14 var map; 15 15 var marker; 16 var zoom; 16 17 17 18 function initialize(lat, lon) { … … 19 20 var myOptions = { 20 21 center: new google.maps.LatLng(lat, lon), 21 zoom: 17,22 zoom: 3, 22 23 mapTypeId: google.maps.MapTypeId.SATELLITE, 23 24 panControl: true 24 25 }; 25 26 26 map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); 27 27 map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); 28 zoom = 0; 29 28 30 var image = new google.maps.MarkerImage("qrc:///map/crosshair.png", 29 31 null, … … 40 42 41 43 function gotoLocation(lat, lon) { 44 if (zoom == 0) { 45 zoom = 17; 46 map.setZoom(zoom); 47 } 42 48 var position = new google.maps.LatLng(lat, lon); 43 49 map.setCenter(position);
Note:
See TracChangeset
for help on using the changeset viewer.