openlayers/openlayers — pull request #129 by probins (2012-01-03 12:11:23+00:00)
Title: Bbox Strategy should allow for externalProjection

Strategy/BBOX is not currently allowing for the fact that the projection of the data source may differ from that of the layer. This commit checks for externalProjection on the protocol's format.

The checks that protocol/format exist are probably not necessary, but several tests fail if these checks are not in there. I added a dummy bounds in test_createFilter() to stop it complaining it didn't know what 'this.bounds' was.

There is not currently any test that the bounds are correctly set, so I've not added one to check that the externalProjection case works. However, it works on my own tests.