Adding docs, removing console.log
This commit is contained in:
+10
-2
@@ -2648,7 +2648,16 @@ OpenLayers.Map = OpenLayers.Class({
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: applyTransform
|
* 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() {
|
applyTransform: (function() {
|
||||||
var transformProperty,
|
var transformProperty,
|
||||||
@@ -2678,7 +2687,6 @@ OpenLayers.Map = OpenLayers.Class({
|
|||||||
style.left = dx + 'px';
|
style.left = dx + 'px';
|
||||||
style.top = dy + 'px';
|
style.top = dy + 'px';
|
||||||
}
|
}
|
||||||
console.log(style[transformProperty]);
|
|
||||||
};
|
};
|
||||||
}()),
|
}()),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user