diff --git a/lib/OpenLayers/Layer/WFS.js b/lib/OpenLayers/Layer/WFS.js index 57f4ef838d..2295e84639 100644 --- a/lib/OpenLayers/Layer/WFS.js +++ b/lib/OpenLayers/Layer/WFS.js @@ -15,7 +15,8 @@ */ OpenLayers.Layer.WFS = OpenLayers.Class.create(); OpenLayers.Layer.WFS.prototype = - OpenLayers.Class.inherit( OpenLayers.Layer.Vector, OpenLayers.Layer.Markers, { + OpenLayers.Class.inherit( OpenLayers.Layer.Vector, + OpenLayers.Layer.Markers, { /** * APIProperty: isBaseLayer @@ -65,7 +66,9 @@ OpenLayers.Layer.WFS.prototype = initialize: function(name, url, params, options) { if (options == undefined) { options = {}; } - if (options.featureClass || !OpenLayers.Layer.Vector || !OpenLayers.Feature.Vector) { + if (options.featureClass || + !OpenLayers.Layer.Vector || + !OpenLayers.Feature.Vector) { this.vectorMode = false; } @@ -80,7 +83,8 @@ OpenLayers.Layer.WFS.prototype = if (!options.featureClass) { options.featureClass = OpenLayers.Feature.WFS; } - OpenLayers.Layer.Markers.prototype.initialize.apply(this, newArguments); + OpenLayers.Layer.Markers.prototype.initialize.apply(this, + newArguments); } if (this.params && this.params.typename && !this.options.typename) { @@ -155,7 +159,8 @@ OpenLayers.Layer.WFS.prototype = } // don't load data if current zoom level doesn't match - if (this.options.minZoomLevel && this.map.getZoom() < this.options.minZoomLevel) { + if (this.options.minZoomLevel && + (this.map.getZoom() < this.options.minZoomLevel) ) { return null; }; @@ -223,9 +228,11 @@ OpenLayers.Layer.WFS.prototype = */ onMapResize: function() { if(this.vectorMode) { - OpenLayers.Layer.Vector.prototype.onMapResize.apply(this, arguments); + OpenLayers.Layer.Vector.prototype.onMapResize.apply(this, + arguments); } else { - OpenLayers.Layer.Markers.prototype.onMapResize.apply(this, arguments); + OpenLayers.Layer.Markers.prototype.onMapResize.apply(this, + arguments); } },