- Timestamp:
- 02/14/2019 08:21:47 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/atms_map_night_30sec.html (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/atms_map_night_30sec.html
r261 r264 19 19 </head> 20 20 <body> 21 <h3> ATMS Simulator Map Prototype 0.1</h3>21 <h3>STMS Map Prototype 0.2</h3> 22 22 <!--The div element for the map --> 23 23 <div id="mapdiv"></div> … … 27 27 function dotSymbol(color) 28 28 { 29 // create a colored circle marker 29 30 return { 30 31 path:google.maps.SymbolPath.CIRCLE, … … 39 40 // Load the map data 40 41 map.data.loadGeoJson('highways.json'); 41 //map.data.loadGeoJson("https://www.dropbox.com/s/qzlj63sqsua07ah/highways.json"); 42 42 43 // Style the map data by applying the color property to each dot 43 44 map.data.setStyle(function(feature) … … 53 54 function initMap() 54 55 { 55 // The location of John Wayne Airport 56 // The location of John Wayne Airport (where map is centered) 56 57 var wayne = {lat: 33.687228, lng: -117.872148}; 57 // The map, centered at John Wayne Airport58 // Declare the map, centered at John Wayne Airport, with a specified zoom 58 59 map = new google.maps.Map( document.getElementById('mapdiv'), 59 60 { 60 61 zoom: 13, 61 62 center: wayne, 63 // styles for "night" node 62 64 styles: [ 63 65 {elementType: 'geometry', stylers: [{color: '#242f3e'}]}, … … 142 144 }); 143 145 loadMapData(); 144 // Start a time to refresh the map every 30 seconds146 // Start a timer to refresh the map every 30 seconds 145 147 var myTimer = setInterval(loadMapData, 30000); 146 148 }
Note: See TracChangeset
for help on using the changeset viewer.
