Changeset 5246 in ntrip for trunk/BNC/src/map/map_gm.html


Ignore:
Timestamp:
Jun 17, 2013, 10:29:51 AM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/map/map_gm.html

    r5245 r5246  
    1515      var marker;
    1616      var zoom;
     17      var useTrace;
    1718     
    18       function initialize(lat, lon) {
     19      function initialize(lat, lon, trace) {
    1920     
     21        useTrace = trace;
     22
    2023        var myOptions = {
    2124          center:     new google.maps.LatLng(lat, lon),
     
    4952        map.setCenter(position);
    5053        marker.setPosition(position);
     54
     55        if (useTrace == 1) {
     56          var trace = new google.maps.Marker({
     57            map:      map,
     58            position: new google.maps.LatLng(lat, lon),
     59          });
     60        }
    5161      }
    5262    </script>
Note: See TracChangeset for help on using the changeset viewer.