Ticket #1037: project-geometries.patch
| File project-geometries.patch, 1.8 kB (added by crschmidt, 1 year ago) |
|---|
-
lib/OpenLayers/Geometry/Point.js
old new 167 167 this.y = origin.y + (scale * (this.y - origin.y)); 168 168 this.clearBounds(); 169 169 }, 170 171 /** 172 * APIMethod: transform 173 * Translate the x,y properties of the point from source to dest. 174 * 175 * Parameters: 176 * source - {<OpenLayers.Projection>} 177 * dest - {<OpenLayers.Projection>} 178 */ 179 transform: function(source, dest) { 180 if ((source && dest)) { 181 OpenLayers.Projection.transform( 182 this, source, dest); 183 } 184 }, 170 185 171 186 CLASS_NAME: "OpenLayers.Geometry.Point" 172 187 }); -
lib/OpenLayers/Geometry/Collection.js
old new 304 304 return equivalent; 305 305 }, 306 306 307 /** 308 * APIMethod: transform 309 * Reproject the components geometry from source to dest. 310 * 311 * Parameters: 312 * source - {<OpenLayers.Projection>} 313 * dest - {<OpenLayers.Projection>} 314 */ 315 transform: function(source, dest) { 316 if (source && dest) { 317 for (var i = 0; i < this.components.length; i++) { 318 var component = this.components[i]; 319 component.transform(source, dest); 320 } 321 } 322 }, 323 307 324 /** @final @type String */ 308 325 CLASS_NAME: "OpenLayers.Geometry.Collection" 309 326 });
