From 115fc7462ba040a14997c955869fb30a79222f85 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Sat, 14 Apr 2007 05:34:52 +0000 Subject: [PATCH] Commit the part of #664 for map resize changes, with a regression test to boot. Thanks for the patch, Tim. git-svn-id: http://svn.openlayers.org/trunk/openlayers@3076 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/WFS.js | 13 ++++++++++++- tests/Layer/test_WFS.html | 37 +++++++++++++++++++++++++++++++++++++ tests/list-tests.html | 1 + 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 tests/Layer/test_WFS.html 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 @@
  • Layer/test_MapServer_Untiled.html
  • Layer/test_Text.html
  • Layer/test_WMS.html
  • +
  • Layer/test_WFS.html
  • Layer/test_TMS.html
  • Layer/test_Vector.html
  • Layer/test_GML.html