coding standards. lines should be less than 79 characters

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3576 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-07-03 22:54:42 +00:00
parent b2371b7162
commit c06608c7d0
+13 -6
View File
@@ -15,7 +15,8 @@
*/ */
OpenLayers.Layer.WFS = OpenLayers.Class.create(); OpenLayers.Layer.WFS = OpenLayers.Class.create();
OpenLayers.Layer.WFS.prototype = OpenLayers.Layer.WFS.prototype =
OpenLayers.Class.inherit( OpenLayers.Layer.Vector, OpenLayers.Layer.Markers, { OpenLayers.Class.inherit( OpenLayers.Layer.Vector,
OpenLayers.Layer.Markers, {
/** /**
* APIProperty: isBaseLayer * APIProperty: isBaseLayer
@@ -65,7 +66,9 @@ OpenLayers.Layer.WFS.prototype =
initialize: function(name, url, params, options) { initialize: function(name, url, params, options) {
if (options == undefined) { 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; this.vectorMode = false;
} }
@@ -80,7 +83,8 @@ OpenLayers.Layer.WFS.prototype =
if (!options.featureClass) { if (!options.featureClass) {
options.featureClass = OpenLayers.Feature.WFS; 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) { 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 // 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; return null;
}; };
@@ -223,9 +228,11 @@ OpenLayers.Layer.WFS.prototype =
*/ */
onMapResize: function() { onMapResize: function() {
if(this.vectorMode) { if(this.vectorMode) {
OpenLayers.Layer.Vector.prototype.onMapResize.apply(this, arguments); OpenLayers.Layer.Vector.prototype.onMapResize.apply(this,
arguments);
} else { } else {
OpenLayers.Layer.Markers.prototype.onMapResize.apply(this, arguments); OpenLayers.Layer.Markers.prototype.onMapResize.apply(this,
arguments);
} }
}, },