|
|
|
|
@@ -88,7 +88,7 @@ OpenLayers.Pixel.prototype = {
|
|
|
|
|
return new OpenLayers.Pixel(this.x + x, this.y + y);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/** @type str */
|
|
|
|
|
/** @final @type str */
|
|
|
|
|
CLASS_NAME: "OpenLayers.Pixel"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -117,7 +117,7 @@ OpenLayers.Size.prototype = {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return String representation of OpenLayers.Size object.
|
|
|
|
|
* (ex. "w=55,h=66")
|
|
|
|
|
* (ex. <i>"w=55,h=66"</i>)
|
|
|
|
|
* @type String
|
|
|
|
|
*/
|
|
|
|
|
toString:function() {
|
|
|
|
|
@@ -143,7 +143,7 @@ OpenLayers.Size.prototype = {
|
|
|
|
|
return ((this.w == sz.w) && (this.h == sz.h));
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/** @type String */
|
|
|
|
|
/** @final @type String */
|
|
|
|
|
CLASS_NAME: "OpenLayers.Size"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -172,7 +172,7 @@ OpenLayers.LonLat.prototype = {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return String representation of OpenLayers.LonLat object.
|
|
|
|
|
* (ex. "lon=5,lat=42")
|
|
|
|
|
* (ex. <i>"lon=5,lat=42"</i>)
|
|
|
|
|
* @type String
|
|
|
|
|
*/
|
|
|
|
|
toString:function() {
|
|
|
|
|
@@ -181,7 +181,7 @@ OpenLayers.LonLat.prototype = {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return Shortened String representation of OpenLayers.LonLat object.
|
|
|
|
|
* (ex. "5,42")
|
|
|
|
|
* (ex. <i>"5,42"</i>)
|
|
|
|
|
* @type String
|
|
|
|
|
*/
|
|
|
|
|
toShortString:function() {
|
|
|
|
|
@@ -217,7 +217,7 @@ OpenLayers.LonLat.prototype = {
|
|
|
|
|
return ((this.lon == ll.lon) && (this.lat == ll.lat));
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/** @type String */
|
|
|
|
|
/** @final @type String */
|
|
|
|
|
CLASS_NAME: "OpenLayers.LonLat"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -226,7 +226,8 @@ OpenLayers.LonLat.prototype = {
|
|
|
|
|
*
|
|
|
|
|
* @constructor
|
|
|
|
|
*
|
|
|
|
|
* @param {String} str Comma-separated Lon,Lat coordinate string. (ex. "5,40")
|
|
|
|
|
* @param {String} str Comma-separated Lon,Lat coordinate string.
|
|
|
|
|
* (ex. <i>"5,40"</i>)
|
|
|
|
|
*
|
|
|
|
|
* @returns New OpenLayers.LonLat object built from the passed-in String.
|
|
|
|
|
* @type OpenLayers.LonLat
|
|
|
|
|
@@ -284,13 +285,13 @@ OpenLayers.Bounds.prototype = {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return String representation of OpenLayers.Bounds object.
|
|
|
|
|
* (ex. "Min lon/lat=5/42 Max lon/lat=10/45 width:5 height:3")
|
|
|
|
|
* (ex.<i>"Min lon/lat=5/42 Max lon/lat=10/45 width=5 height=3"</i>)
|
|
|
|
|
* @type String
|
|
|
|
|
*/
|
|
|
|
|
toString:function(){
|
|
|
|
|
return ("Min lon/lat=" + this.minlon +"/"+ this.minlat
|
|
|
|
|
+ " Max lon/lat=" + this.maxlon +"/"+ this.maxlat
|
|
|
|
|
+ " width:" + this.width + " height:" + this.height);
|
|
|
|
|
+ " width=" + this.width + " height=" + this.height);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@@ -304,7 +305,7 @@ OpenLayers.Bounds.prototype = {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return Simple String representation of OpenLayers.Bounds object.
|
|
|
|
|
* (ex. "5,42,10,45")
|
|
|
|
|
* (ex. <i>"5,42,10,45"</i>)
|
|
|
|
|
* @type String
|
|
|
|
|
*/
|
|
|
|
|
toBBOX:function(){
|
|
|
|
|
@@ -323,7 +324,7 @@ OpenLayers.Bounds.prototype = {
|
|
|
|
|
&& (ll.lat >= this.minlat) && (ll.lat <= this.maxlat));
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/** @type String */
|
|
|
|
|
/** @final @type String */
|
|
|
|
|
CLASS_NAME: "OpenLayers.Bounds"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -332,7 +333,7 @@ OpenLayers.Bounds.prototype = {
|
|
|
|
|
*
|
|
|
|
|
* @constructor
|
|
|
|
|
*
|
|
|
|
|
* @param {String} str Comma-separated bounds string. (ex. "5,42,10,45")
|
|
|
|
|
* @param {String} str Comma-separated bounds string. (ex. <i>"5,42,10,45"</i>)
|
|
|
|
|
*
|
|
|
|
|
* @returns New OpenLayers.Bounds object built from the passed-in String.
|
|
|
|
|
* @type OpenLayers.Bounds
|
|
|
|
|
|