[OpenLayers-Users] reproject error

Stephen Davies sdavies at sdc.com.au
Fri Aug 17 23:03:37 PDT 2012


I have a layer defined with reproject:true (see below).

This generates a javascript error:

getBoundsFromBaseLayer is not a function.

Openlayers 2.12 stored locally.

              var trk = new OpenLayers.Layer.WMS( "TRK",
                      "http://www.agua.com.au/cgi-bin/mapserv?",
                      {map: '/var/www/unit.map',
                        layers: 'unit',
                        format: 'png',
                        transparent: 'true',
                       srs: 'EPSG:4326',
                       isBaselayer:false
                       },
                       {'reproject':true}
              );

Looking in OpenLayers.js I see:

draw:function(){var a=OpenLayers.Tile.prototype.draw.apply(this,arguments);a?
(this.layer!=this.layer.map.baseLayer&&
this.layer.reproject&&(this.bounds=this.getBoundsFromBaseLayer(this.position)),this.isLoading?this._loadEvent="reload":
(this.isLoading=!
0,this._loadEvent="loadstart"),this.positionTile(),this.renderTile()):this.unload();return 
a}
-- 
=============================================================================
Stephen Davies Consulting P/L                           Phone: 08-8177 1595
Adelaide, South Australia.                                Mobile:040 304 0583
Records & Collections Management.


More information about the Users mailing list