diff --git a/lib/OpenLayers/Layer/WFS.js b/lib/OpenLayers/Layer/WFS.js index 9a927e1fa0..bf1b52e779 100644 --- a/lib/OpenLayers/Layer/WFS.js +++ b/lib/OpenLayers/Layer/WFS.js @@ -202,7 +202,18 @@ OpenLayers.Layer.WFS.prototype = } } }, - + + /** + * Call the onMapResize method of the appropriate parent class. + */ + onMapResize: function() { + if(this.vectorMode) { + OpenLayers.Layer.Vector.prototype.onMapResize.apply(this, arguments); + } else { + OpenLayers.Layer.Markers.prototype.onMapResize.apply(this, arguments); + } + }, + /** * @param {Object} obj * diff --git a/tests/Layer/test_WFS.html b/tests/Layer/test_WFS.html new file mode 100644 index 0000000000..332dcba353 --- /dev/null +++ b/tests/Layer/test_WFS.html @@ -0,0 +1,37 @@ + +
+ + + + + + + diff --git a/tests/list-tests.html b/tests/list-tests.html index 5ef330d379..d8104a89e4 100644 --- a/tests/list-tests.html +++ b/tests/list-tests.html @@ -42,6 +42,7 @@