OpenLayers OpenLayers

Changeset 7518

Show
Ignore:
Timestamp:
07/15/08 18:05:19 (2 months ago)
Author:
tschaub
Message:

This will soon need reworking, but for now the bbox strategy passes the map projection on to the protocol. Playing a bit loose with the cast to string while setting srsName.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/topp/trimet/lib/OpenLayers/Protocol/WFS/v1_0_0.js

    r7514 r7518  
    170170                typeName: (options.featureNS ? this.featurePrefix + ":" : "") + 
    171171                    options.featureType, 
    172                 srsName: options.srsName || this.srsName 
     172                srsName: options.projection || this.srsName 
    173173            } 
    174174        }); 
  • sandbox/topp/trimet/lib/OpenLayers/Strategy/BBOX.js

    r7496 r7518  
    9393    triggerRead: function(event) { 
    9494        event = event || {}; 
     95         
     96        var projection = this.layer.map.getProjectionObject(); 
    9597 
    9698        // create a BBOX spatial filter 
     
    103105                this.bounds.top - this.bounds.bottom 
    104106            ), 
    105             projection: this.layer.projection 
     107            projection: projection 
    106108        }); 
    107109  
     
    112114            abortPrevious: true, 
    113115            filter: filter, 
     116            projection: projection, 
    114117            params: params, 
    115118            callback: function(resp) {