Changeset 339 in tmcsimulator for trunk


Ignore:
Timestamp:
03/21/2019 11:46:12 AM (7 years ago)
Author:
jdalbey
Message:

add cctv_unavailable.jpb

Location:
trunk/webapps
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/webapps/cptms.html

    r338 r339  
    213213    <script  src="js/controls.js"></script> 
    214214    <script  src="js/night_mode.js"></script> 
    215     <!-- Using John's API Key  
     215    <!-- Using John's API Key --> 
    216216    <script async defer 
    217217    src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD6iTyN0DjP-9OVkAgicyp4tkC10naE_B8&libraries=places&callback=initMap"> 
    218     </script>--> 
    219     <!-- Project API Key --> 
     218    </script> 
     219    <!-- Project API Key 
    220220    <script async defer 
    221221    src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCJuoPR3s6_qekC-GA1v5rvTcVocL3AXHE&libraries=places&callback=initMap"></script> 
     222 --> 
    222223<!-- 
    223224export GOOGLE_APPLICATION_CREDENTIALS="/home/<path to file>/TMC Simulator-c3ae15ddb96b.json" 
  • trunk/webapps/js/cctvLayer.js

    r338 r339  
    4040{ 
    4141    var imgTag = '<IMG WIDTH="700" ONERROR=this.src="images/cctv_unavailable.jpg"  SRC="images/'; 
    42     cctv_infowindow = new google.maps.InfoWindow(); 
    43     cctvLayer = new google.maps.Data(); 
    44     cctvLayer.loadGeoJson(kCCTVfile); 
     42    cctv_infowindow = new google.maps.InfoWindow(); // initial the singleton 
     43    cctvLayer = new google.maps.Data();  
     44    cctvLayer.loadGeoJson(kCCTVfile); // load the features  
    4545    // Define the clickable area on an icon (the default is too big) 
    4646    var clickRegion = {coords: [0,0,14,8], type: "rect"}   
Note: See TracChangeset for help on using the changeset viewer.