Changeset 2883 for TI05-delivery/ows_framework/trunk
- Timestamp:
- 13/09/07 16:22:19 (12 years ago)
- 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 223 223 this.visApp = visApp; 224 224 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; 228 228 }; 229 229 VisControl.prototype = { 230 230 updateVisApp: function() { 231 var granuleId = this.granuleForm.dataset.value;231 var granuleId = $(this.granuleFormId).dataset.value; 232 232 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; 236 237 } 237 238 } … … 239 240 var domain = {'TIME': this.granuleDescription[granuleId][featureId]['domain']['time'][0]}; 240 241 241 242 243 if (console) { 244 console.log('VisControl: updateVisLayer('+this.granuleDescription[granuleId]['wmsURI']+', '+featureId+', '+domain['TIME']+')'); 245 } 242 246 this.visApp.updateVisLayer(this.granuleDescription[granuleId]['wmsURI'], featureId, domain['TIME']); 243 247 } -
TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/visualise.kid
r2882 r2883 70 70 <?python url=h.url_for( 71 71 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()"> 73 73 <ul> 74 74 <li py:for="uri in c.selections"> … … 96 96 ?> 97 97 <h4> $c.viewedDataset</h4> 98 <form action="$url" id="fList" >98 <form action="$url" id="fList" onchange="control.updateVisApp()"> 99 99 <ul> 100 100 <li py:for="featureID in features">
Note: See TracChangeset
for help on using the changeset viewer.