Changeset 264 in tmcsimulator


Ignore:
Timestamp:
02/14/2019 08:21:47 PM (7 years ago)
Author:
jdalbey
Message:

add comments to google map page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/atms_map_night_30sec.html

    r261 r264  
    1919  </head> 
    2020  <body> 
    21     <h3>ATMS Simulator Map Prototype 0.1</h3> 
     21    <h3>STMS Map Prototype 0.2</h3> 
    2222    <!--The div element for the map --> 
    2323    <div id="mapdiv"></div> 
     
    2727    function dotSymbol(color) 
    2828    { 
     29        // create a colored circle marker 
    2930        return { 
    3031            path:google.maps.SymbolPath.CIRCLE, 
     
    3940        // Load the map data 
    4041        map.data.loadGeoJson('highways.json'); 
    41 //map.data.loadGeoJson("https://www.dropbox.com/s/qzlj63sqsua07ah/highways.json"); 
     42 
    4243        // Style the map data by applying the color property to each dot 
    4344        map.data.setStyle(function(feature)  
     
    5354    function initMap()  
    5455    { 
    55         // The location of John Wayne Airport 
     56        // The location of John Wayne Airport (where map is centered) 
    5657        var wayne = {lat: 33.687228, lng: -117.872148}; 
    57         // The map, centered at John Wayne Airport 
     58        // Declare the map, centered at John Wayne Airport, with a specified zoom 
    5859        map = new google.maps.Map( document.getElementById('mapdiv'),  
    5960        { 
    6061            zoom: 13,  
    6162            center: wayne, 
     63            // styles for "night" node 
    6264            styles: [ 
    6365                {elementType: 'geometry', stylers: [{color: '#242f3e'}]}, 
     
    142144            }); 
    143145        loadMapData(); 
    144         // Start a time to refresh the map every 30 seconds 
     146        // Start a timer to refresh the map every 30 seconds 
    145147        var myTimer = setInterval(loadMapData, 30000); 
    146148    } 
Note: See TracChangeset for help on using the changeset viewer.