Changeset 2996


Ignore:
Timestamp:
07/11/07 10:13:45 (12 years ago)
Author:
spascoe
Message:

Small change to add a WMS endpoint link to the visualise page.

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

    r2989 r2996  
    246246    this.variableFormId = variableFormId; 
    247247    this.domainFormId = domainFormId; 
     248 
     249    this.endpointAnchor = null; 
    248250}; 
    249251VisControl.prototype = { 
     
    273275        this.visApp.updateVisLayer(this.granuleDescription[granuleId]['wmsURI'], featureId, 
    274276                                   domain['TIME']); 
     277        if (this.endpointAnchor != null) { 
     278            this.endpointAnchor.href = this.visApp.visLayer.url; 
     279        } 
    275280    }, 
    276281    /** Change the domain fields in this.constraintsFormId to reflect the current variable selection */ 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/visualise.kid

    r2989 r2996  
    4242        app = new VisApp('visMap', 'navForm', 'colourbar', 600, 10); 
    4343        control = new VisControl(app, granules, 'dsList', 'fList', 'domainForm'); 
     44        control.endpointAnchor = $('wmsEndpoint'); 
    4445        // Update the vis 
    4546        control.populateDomainOptions(); 
     
    207208                <div py:if="c.wmsAvailable" class="map" id="visMap" /> 
    208209                <div py:if="c.wmsAvailable" class="colourbar" id="colourbar" /> 
     210                <p><a id="wmsEndpoint">WMS Endpoint</a></p> 
    209211                <p> The visualisation feature is not fully implemented. </p> 
    210212                <div py:if="c.nothing2see"> 
Note: See TracChangeset for help on using the changeset viewer.