Tabs patch from Erik, to change tabs to spaces so we don't have commit
conflicts later on. git-svn-id: http://svn.openlayers.org/trunk/openlayers@2920 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -20,8 +20,8 @@ OpenLayers.Geometry.LineString.prototype =
|
||||
* @param {Array(OpenLayers.Geometry.Point)} points
|
||||
*/
|
||||
initialize: function(points) {
|
||||
OpenLayers.Geometry.Curve.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
OpenLayers.Geometry.Curve.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,8 +19,8 @@ OpenLayers.Geometry.MultiLineString.prototype =
|
||||
* @param {Array(OpenLayers.Geometry.LineString)} components
|
||||
*/
|
||||
initialize: function(components) {
|
||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,8 +19,8 @@ OpenLayers.Geometry.MultiPoint.prototype =
|
||||
* @param {Array(OpenLayers.Geometry.Point)} components
|
||||
*/
|
||||
initialize: function(components) {
|
||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,8 +19,8 @@ OpenLayers.Geometry.MultiPolygon.prototype =
|
||||
* @param {Array(OpenLayers.Geometry.Polygon)} components
|
||||
*/
|
||||
initialize: function(components) {
|
||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -33,11 +33,11 @@ OpenLayers.Geometry.Point.prototype =
|
||||
* @param {float} y
|
||||
*/
|
||||
initialize: function(x, y) {
|
||||
OpenLayers.Geometry.prototype.initialize.apply(this, arguments);
|
||||
OpenLayers.LonLat.prototype.initialize.apply(this, arguments);
|
||||
|
||||
this.x = this.lon;
|
||||
this.y = this.lat;
|
||||
OpenLayers.Geometry.prototype.initialize.apply(this, arguments);
|
||||
OpenLayers.LonLat.prototype.initialize.apply(this, arguments);
|
||||
|
||||
this.x = this.lon;
|
||||
this.y = this.lat;
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -61,8 +61,8 @@ OpenLayers.Geometry.Point.prototype =
|
||||
* @param {float} x
|
||||
*/
|
||||
setX: function(x) {
|
||||
this.lon = x;
|
||||
this.x = x;
|
||||
this.lon = x;
|
||||
this.x = x;
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -71,22 +71,22 @@ OpenLayers.Geometry.Point.prototype =
|
||||
* @param {float} y
|
||||
*/
|
||||
setY: function(y) {
|
||||
this.lat = y;
|
||||
this.y = y;
|
||||
this.lat = y;
|
||||
this.y = y;
|
||||
},
|
||||
|
||||
/**
|
||||
* @type float
|
||||
*/
|
||||
getX: function() {
|
||||
return this.lon;
|
||||
return this.lon;
|
||||
},
|
||||
|
||||
/**
|
||||
* @type float
|
||||
*/
|
||||
getY: function() {
|
||||
return this.lat;
|
||||
return this.lat;
|
||||
},
|
||||
|
||||
/** Create a new Bounds based on the lon/lat
|
||||
@@ -117,7 +117,7 @@ OpenLayers.Geometry.Point.prototype =
|
||||
* @type String
|
||||
*/
|
||||
toString: function() {
|
||||
return this.toShortString();
|
||||
return this.toShortString();
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -22,8 +22,8 @@ OpenLayers.Geometry.Polygon.prototype =
|
||||
* @param {Array(OpenLayers.Geometry.LinearRing)}
|
||||
*/
|
||||
initialize: function(components) {
|
||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user