Ignore:
Timestamp:
28/02/08 17:07:29 (11 years ago)
Author:
cbyrom
Message:

Adjust js code to allow WMC documents to be displayed as tree view nodes

  • with their layers being displayed upon expansion + display the layers

when these children are selected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/viewItems.kid

    r3544 r3547  
    4646    control = new WMSC.Control('layerTree', 'layerLeaves', 'dims'); 
    4747    <for py:for="i in session['viewItems']" class="dataset" py:strip="True"> 
    48         control.addWebMapContext('viewItems', '${i.wmcURL}'); 
     48        <span py:if="i.wmcURL" py:strip="True"> 
     49                control.addWebMapContext('viewItems', '${i.wmcURL}'); 
     50            </span> 
    4951    </for> 
    5052 
Note: See TracChangeset for help on using the changeset viewer.