[OpenLayers-Commits] r3576 - trunk/openlayers/lib/OpenLayers/Layer
commits at openlayers.org
commits at openlayers.org
Tue Jul 3 18:54:43 EDT 2007
Author: euzuro
Date: 2007-07-03 18:54:42 -0400 (Tue, 03 Jul 2007)
New Revision: 3576
Modified:
trunk/openlayers/lib/OpenLayers/Layer/WFS.js
Log:
coding standards. lines should be less than 79 characters
Modified: trunk/openlayers/lib/OpenLayers/Layer/WFS.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/WFS.js 2007-07-03 22:23:20 UTC (rev 3575)
+++ trunk/openlayers/lib/OpenLayers/Layer/WFS.js 2007-07-03 22:54:42 UTC (rev 3576)
@@ -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 @@
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 @@
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 @@
}
// 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 @@
*/
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);
}
},
More information about the Commits
mailing list