Ignore:
Timestamp:
13/09/07 16:22:19 (12 years ago)
Author:
spascoe
Message:

Visualise successfully shows at least 1 ipcc-ddc granule and responds
to changing the visible feature.

Location:
TI05-delivery/ows_framework/trunk/ows_server/ows_server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/public/js/VisMapBox.js

    r2882 r2883  
    223223    this.visApp = visApp; 
    224224    this.granuleDescription = granuleDescription; 
    225     this.granuleForm = $(granuleFormId); 
    226     this.variableForm = $(variableFormId); 
    227     this.constraintForm = $(constraintFormId); 
     225    this.granuleFormId = granuleFormId; 
     226    this.variableFormId = variableFormId; 
     227    this.constraintFormId = constraintFormId; 
    228228}; 
    229229VisControl.prototype = { 
    230230    updateVisApp: function() { 
    231         var granuleId = this.granuleForm.dataset.value; 
     231        var granuleId = $(this.granuleFormId).dataset.value; 
    232232        var featureId = null; 
    233         for (var i=0; i<this.variableForm.length; i++) { 
    234             if (this.variableForm[i].checked) { 
    235                 featureId = this.variableForm[i].value; 
     233        var variableForm = $(this.variableFormId); 
     234        for (var i=0; i<variableForm.length; i++) { 
     235            if (variableForm[i].checked) { 
     236                featureId = variableForm[i].value; 
    236237            } 
    237238        } 
     
    239240        var domain = {'TIME': this.granuleDescription[granuleId][featureId]['domain']['time'][0]}; 
    240241         
    241          
     242 
     243        if (console) { 
     244            console.log('VisControl: updateVisLayer('+this.granuleDescription[granuleId]['wmsURI']+', '+featureId+', '+domain['TIME']+')'); 
     245        } 
    242246        this.visApp.updateVisLayer(this.granuleDescription[granuleId]['wmsURI'], featureId, domain['TIME']); 
    243247    } 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/visualise.kid

    r2882 r2883  
    7070                    <?python url=h.url_for( 
    7171                    controller="visualise",action="tabChange",dataset=c.viewedDataset,view=c.visible)?> 
    72                     <form action="$url" id="dsList"> 
     72                    <form action="$url" id="dsList" onchange="control.updateVisApp()"> 
    7373                        <ul> 
    7474                            <li py:for="uri in c.selections"> 
     
    9696                    ?> 
    9797                    <h4> $c.viewedDataset</h4> 
    98                     <form action="$url" id="fList"> 
     98                    <form action="$url" id="fList" onchange="control.updateVisApp()"> 
    9999                        <ul> 
    100100                            <li py:for="featureID in features"> 
Note: See TracChangeset for help on using the changeset viewer.