Changeset 5515
- Timestamp:
- 12/19/07 17:04:30 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Geometry/Collection.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Geometry/LinearRing.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Geometry/Point.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Geometry/Collection.js
r5458 r5515 308 308 309 309 /** 310 * APIMethod: transform 311 * Reproject the components geometry from source to dest. 312 * 313 * Parameters: 314 * source - {<OpenLayers.Projection>} 315 * dest - {<OpenLayers.Projection>} 316 * 317 * Returns: 318 * {<OpenLayers.Geometry>} 319 */ 320 transform: function(source, dest) { 321 if (source && dest) { 322 for (var i = 0; i < this.components.length; i++) { 323 var component = this.components[i]; 324 component.transform(source, dest); 325 } 326 } 327 return this; 328 }, 329 330 /** 310 331 * APIMethod: intersects 311 332 * Determine if the input geometry intersects this one. trunk/openlayers/lib/OpenLayers/Geometry/LinearRing.js
r5458 r5515 152 152 this.components[i].resize(scale, origin, ratio); 153 153 } 154 }, 155 156 /** 157 * APIMethod: transform 158 * Reproject the components geometry from source to dest. 159 * 160 * Parameters: 161 * source - {<OpenLayers.Projection>} 162 * dest - {<OpenLayers.Projection>} 163 * 164 * Returns: 165 * {<OpenLayers.Geometry>} 166 */ 167 transform: function(source, dest) { 168 if (source && dest) { 169 for (var i = 0; i < this.components.length - 1; i++) { 170 var component = this.components[i]; 171 component.transform(source, dest); 172 } 173 } 174 return this; 154 175 }, 155 176 trunk/openlayers/lib/OpenLayers/Geometry/Point.js
r5458 r5515 189 189 return intersect; 190 190 }, 191 192 /** 193 * APIMethod: transform 194 * Translate the x,y properties of the point from source to dest. 195 * 196 * Parameters: 197 * source - {<OpenLayers.Projection>} 198 * dest - {<OpenLayers.Projection>} 199 * 200 * Returns: 201 * {<OpenLayers.Geometry>} 202 */ 203 transform: function(source, dest) { 204 if ((source && dest)) { 205 OpenLayers.Projection.transform( 206 this, source, dest); 207 } 208 return this; 209 }, 191 210 192 211 CLASS_NAME: "OpenLayers.Geometry.Point"
