Adding docs, removing console.log

This commit is contained in:
ahocevar
2012-12-11 23:39:54 +01:00
parent 64d291ea20
commit eb65336fa9

View File

@@ -2648,7 +2648,16 @@ OpenLayers.Map = OpenLayers.Class({
/**
* Method: applyTransform
* Applies the given transform to layers.
* Applies the given transform to the <layerContainerDiv>. This method has
* a 2-stage fallback from translate3d/scale3d via translate/scale to plain
* style.left/style.top, in which case no scaling is supported.
*
* Parameters:
* x - {Number} x parameter for the translation. Defaults to the x value of
* the map's <layerContainerOriginPx>
* y - {Number} y parameter for the translation. Defaults to the y value of
* the map's <layerContainerOriginPx>
* scale - {Number} scale. Defaults to 1 if not provided.
*/
applyTransform: (function() {
var transformProperty,
@@ -2678,7 +2687,6 @@ OpenLayers.Map = OpenLayers.Class({
style.left = dx + 'px';
style.top = dy + 'px';
}
console.log(style[transformProperty]);
};
}()),