Changeset 2269

Show
Ignore:
Timestamp:
03/04/10 09:03:39 (5 months ago)
Author:
JO94
Message:

not loading invisible network links

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FalconView/trunk/public/fvw_core/GeodataDataSources/LibkmlNetworkLink.cpp

    r2267 r2269  
    188188         // have a <Region> tag, it is loaded regardless.) 
    189189 
     190         // we skip retrieving network links that aren't visible 
     191         VARIANT_BOOL visible; 
     192         get_Visible(&visible); 
     193          
    190194         // if the given feature does not have a region, then find the youngest ancestor that does 
    191195         kmldom::FeaturePtr feature = kmldom::AsFeature(m_networkLink); 
     
    193197            feature = kmldom::AsFeature(CUtilityMethods::GetAncestorOfType(feature, kmldom::Type_Feature)); 
    194198 
    195          if ( feature == NULL // feature is null if not regionated 
     199         if ( visible == VARIANT_TRUE 
     200              && (feature == NULL // feature is null if not regionated 
    196201              || (m_degreesPerPixelX >= 0 && m_degreesPerPixelY >= 0 
    197202                  && CUtilityMethods::KMLFeatureInRegion(m_networkLink, m_leftLon, 
    198203                                                         m_bottomLat, m_rightLon, m_topLat, 
    199                                                          m_degreesPerPixelX, m_degreesPerPixelY))) 
     204                                                         m_degreesPerPixelX, m_degreesPerPixelY)))) 
    200205         { 
    201206            // get the base URL