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/ndgPage.kid

    r2858 r2865  
    1313        <script py:if="ol==1" src="/js/openlayers-x.js"/> 
    1414        <script py:if="ol==1" src="/js/OLMapBox.js"/> 
     15 
     16        <!--! At some stage we should put this as a separate option --> 
     17        <script py:if="ol==1" src="/js/VisMapBox.js"/> 
     18 
    1519        <link media="all, screen" href="/layout/ndg2.css" type="text/css" rel="stylesheet"/> 
    1620 
     
    2024            app = new OLMapBoxApp('map','discoForm', 440, 10); 
    2125          } 
     26 
     27          function initVisMapBox() { 
     28            app = new VisApp('visMap', 'visForm', 600, 10); 
     29          } 
     30 
     31          function updateVis(formId) { 
     32              var form = $(formId); 
     33              form.granuleURI.value, form.featureId.value, form.time.value 
     34              var wmsURL = "${h.url_for(controller='csml_wms', uri='')}" + form.granuleURI.value; 
     35              app.updateVisLayer(wmsURL, form.featureId.value, form.time.value); 
     36          } 
     37 
    2238        </script> 
    2339 
Note: See TracChangeset for help on using the changeset viewer.