Ignore:
Timestamp:
31/08/07 16:57:44 (12 years ago)
Author:
spascoe
Message:

First glimpse of visualise working.

It's not connected to the selection control yet. You need to explicitly
give it a granuleURI, featureId and time point. The form is populated with
an example.

Update is controlled from the ndgPage.kid:updateVis() function
which calls VisMapBox?.js:VisApp.updateVisLayer().

Note it won't work unless the data is visible at the location in the CSML (/badc/ipcc-ddc/... in the example).

I can see the WMS isn't drawing tiles correctly at high longitudes. (New Zealand gets a raw deal again :-) ).

File:
1 edited

Legend:

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

    r2862 r2865  
    11<html py:extends="'ndgPage.kid'" xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"> 
    22 
    3     <head py:replace="pagehead(0)"/> 
     3    <head py:replace="pagehead(1)"/> 
    44     
    55    <div py:def="notebook(divid)"> 
     
    4444    <div py:if="not c.fullpage" py:replace="notebook(c.inpageid)"/> 
    4545 
    46     <body> 
     46    <body onload="initVisMapBox()"> 
    4747     
    48     <div py:if="c.fullpage" id="entirepage"> 
    49         <div py:replace="header()"/> 
    50         <div py:replace="PageTabs('Visualise')"/> 
    51         <div py:replace="searchOneLine()"/> 
    52         <div id="contents"> 
    53             <div py:if="'selection' in session"> 
    54                 <p> The visualisation feature is not fully implemented. </p> 
    55                 <div py:replace="notebook(c.inpageid)"/> 
    56             </div> 
    57             <div py:if="'selection' not in session"> 
    58                 <p> There are no selected datasets </p> 
    59             </div>         
    60         </div> 
    61         <div py:replace="footer()"/> 
    62     </div> 
     48      <div py:if="c.fullpage" id="entirepage"> 
     49        <div py:replace="header()"/> 
     50        <div py:replace="PageTabs('Visualise')"/> 
     51        <div py:replace="searchOneLine()"/> 
     52        <div id="contents"> 
     53          <table> 
     54            <tr> 
     55              <td> 
     56                <div id="visMap"></div> 
     57              </td> 
     58              <td> 
     59                <form action="" name="visForm" id="visForm"> 
     60                  <table> 
     61                    <tr><td>Northerly Latitude:</td> 
     62                    <td colspan="2" align="center"> 
     63                      <input size="7" value="${c.bbox[0]}" name="bboxN"/> 
     64                    </td></tr> 
     65                    <tr><td>Longitudinal Extent:</td> 
     66                    <td align="center"><input size="8" value="${c.bbox[1]}" name="bboxW"/></td> 
     67                    <td align="center"><input size="8" value="${c.bbox[2]}" name="bboxE"/></td></tr> 
     68                    <tr><td> Southerly Latitude:</td> 
     69                    <td colspan="2" align="center"> 
     70                      <input size="7" value="${c.bbox[3]}" name="bboxS"/> 
     71                    </td></tr> 
     72                    <tr><td colspan="3">(Units: degrees, north and east positive)</td></tr> 
     73                  </table> 
     74                </form> 
     75              </td> 
     76            </tr> 
     77          </table> 
     78          <div> 
     79            <form name="visSelect" id="visSelect" onchange="updateVis('visSelect')"> 
     80              Granule URI: <input type="text" name="granuleURI" value="${c.defaultView['granuleURI']}"/> 
     81              Feature ID: <input type="text" name="featureId" value="${c.defaultView['featureId']}"/> 
     82              Time: <input type="text" name="time" value="${c.defaultView['time']}"/> 
     83              <input type="button" value="Update" onclick="updateVis('visSelect')"/> 
     84            </form> 
     85          </div> 
     86 
     87          <div py:if="'selection' in session"> 
     88            <p> The visualisation feature is not fully implemented. </p> 
     89            <div py:replace="notebook(c.inpageid)"/> 
     90          </div> 
     91          <div py:if="'selection' not in session"> 
     92            <p> There are no selected datasets </p> 
     93          </div>         
     94        </div> 
     95      </div> 
     96      <div py:replace="footer()"/> 
    6397    </body> 
    6498</html> 
Note: See TracChangeset for help on using the changeset viewer.