Changeset 536 in tmcsimulator for trunk/webapps


Ignore:
Timestamp:
11/30/2019 03:19:23 PM (6 years ago)
Author:
jdalbey
Message:

calloutLayer.js: force any open infowindows to close when layer is closed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/webapps/cptms/js/calloutLayer.js

    r535 r536  
    1010// a list of markers that provide a clickable label for the region 
    1111var markerList = [];  
     12  
     13// a list of infoWindows, one for each region 
     14var infowindows = []; 
    1215 
    1316// Initialize the layer by showing a control button and drawing polygons 
     
    5861        polygonList[i].setMap(null); 
    5962        markerList[i].setVisible(false); 
     63        // force close any remaining open info windows. 
     64        infowindows[i].close(); 
    6065    } 
    6166} 
     
    300305    },  
    301306    ]; 
    302   
    303     // a list of infoWindows, one for each region 
    304     var infowindows = []; 
    305307 
    306308    // Iterate over the shapes, creating a polygon for each one 
Note: See TracChangeset for help on using the changeset viewer.