[OpenLayers-Commits] r4719 - sandbox/proj4js/lib/proj4js
commits at openlayers.org
commits at openlayers.org
Mon Oct 1 00:11:58 EDT 2007
Author: crschmidt
Date: 2007-10-01 00:11:56 -0400 (Mon, 01 Oct 2007)
New Revision: 4719
Modified:
sandbox/proj4js/lib/proj4js/proj4js.js
Log:
Remove proj4js.Point, not used anymore.
Modified: sandbox/proj4js/lib/proj4js/proj4js.js
===================================================================
--- sandbox/proj4js/lib/proj4js/proj4js.js 2007-10-01 04:06:10 UTC (rev 4718)
+++ sandbox/proj4js/lib/proj4js/proj4js.js 2007-10-01 04:11:56 UTC (rev 4719)
@@ -44,9 +44,8 @@
/**
* Property: proxyScript
- * A proxy script to execute AJAX requests in other domains
+ * A proxy script to execute AJAX requests in other domains.
*/
- //proxyScript: '/mapbuilder/proxy?url=', //TBD: customize this for spatialreference.org output
proxyScript: null, //TBD: customize this for spatialreference.org output
/**
@@ -70,8 +69,8 @@
* Parameters:
* source - {Proj4js.Proj} source map projection for the transformation
* dest - {Proj4js.Proj} destination map projection for the transformation
- * point - {Proj4js.Point} point to transform, may be geodetic (long, lat)
- * or projected Cartesian (x,y)
+ * point - {Object} point to transform, may be geodetic (long, lat) or
+ * projected Cartesian (x,y), but should always have x,y properties.
*/
transform : function(source, dest, point) {
if (!source.readyToUse || !dest.readyToUse) {
@@ -899,38 +898,4 @@
}
});
-/** point object, nothing fancy, just allows values to be
- passed back and forth by reference rather than by value.
-*/
-Proj4js.Point = OpenLayers.Class({
- initialize : function(x,y,z) {
- this.x = x;
- this.y = y;
- this.z = z || 0.0;
- },
-
- /**
- * Method: toString
- * Return a readable string version of the lonlat
- *
- * Return:
- * {String} String representation of OpenLayers.LonLat object.
- * (ex. <i>"lon=5,lat=42"</i>)
- */
- toString:function() {
- return ("lon=" + this.x + ",lat=" + this.y);
- },
-
- /**
- * APIMethod: toShortString
- *
- * Return:
- * {String} Shortened String representation of OpenLayers.LonLat object.
- * (ex. <i>"5, 42"</i>)
- */
- toShortString:function() {
- return (this.x + ", " + this.y);
- }
-});
-
Proj4js.WGS84 = new Proj4js.Proj('WGS84');
More information about the Commits
mailing list