[OpenLayers-Commits] r11418 - in sandbox/ahocevar/layercontainer:
lib/OpenLayers tests
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Thu Feb 24 09:13:35 EST 2011
Author: ahocevar
Date: 2011-02-24 06:13:35 -0800 (Thu, 24 Feb 2011)
New Revision: 11418
Modified:
sandbox/ahocevar/layercontainer/lib/OpenLayers/Layer.js
sandbox/ahocevar/layercontainer/lib/OpenLayers/Map.js
sandbox/ahocevar/layercontainer/tests/Map.html
Log:
reverted whitespace and doc changes
Modified: sandbox/ahocevar/layercontainer/lib/OpenLayers/Layer.js
===================================================================
--- sandbox/ahocevar/layercontainer/lib/OpenLayers/Layer.js 2011-02-24 14:08:25 UTC (rev 11417)
+++ sandbox/ahocevar/layercontainer/lib/OpenLayers/Layer.js 2011-02-24 14:13:35 UTC (rev 11418)
@@ -77,8 +77,7 @@
* loadcancel - Triggered when layer loading is canceled.
* visibilitychanged - Triggered when layer visibility is changed.
* move - Triggered when layer moves (triggered with every mousemove
- * during a drag). If available, the delta of the movement will be
- * passed in an argument as dx and dy properties.
+ * during a drag).
* moveend - Triggered when layer is done moving, object passed as
* argument has a zoomChanged boolean property which tells that the
* zoom has changed.
Modified: sandbox/ahocevar/layercontainer/lib/OpenLayers/Map.js
===================================================================
--- sandbox/ahocevar/layercontainer/lib/OpenLayers/Map.js 2011-02-24 14:08:25 UTC (rev 11417)
+++ sandbox/ahocevar/layercontainer/lib/OpenLayers/Map.js 2011-02-24 14:13:35 UTC (rev 11418)
@@ -1886,7 +1886,7 @@
* lonlat - {<OpenLayers.LonLat>}
*/
centerLayerContainer: function (lonlat) {
-
+
var originPx = this.getViewPortPxFromLonLat(this.layerContainerOrigin);
var newPx = this.getViewPortPxFromLonLat(lonlat);
Modified: sandbox/ahocevar/layercontainer/tests/Map.html
===================================================================
--- sandbox/ahocevar/layercontainer/tests/Map.html 2011-02-24 14:08:25 UTC (rev 11417)
+++ sandbox/ahocevar/layercontainer/tests/Map.html 2011-02-24 14:13:35 UTC (rev 11418)
@@ -1318,8 +1318,8 @@
var m = {
'baseLayer': { 'units': {} },
- 'getSize': function() {return {'w': 10, 'h': 15}; },
- 'getCenter': function() {return {'lon': -5, 'lat': -25}; },
+ 'getSize': function() { return {'w': 10, 'h': 15}; },
+ 'getCenter': function() { return {'lon': -5, 'lat': -25}; },
'zoomToExtent': function(extent, closest) {
t.ok(extent.equals(g_ExpectedExtent), "extent correctly calculated for zoomToExtent()");
t.ok(closest == g_Closest, "closest correctly passed on to zoomToExtent()");
More information about the Commits
mailing list