Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove panZoom from the codebase. Was commented.

  • Loading branch information...
commit 9d19a3eaac79b03ed9731ee3bb5c26340bfeb5e8 1 parent 09b2a7a
Tom MacWright tmcw authored
Showing with 0 additions and 26 deletions.
  1. +0 −13 modestmaps.js
  2. +0 −13 src/map.js
13 modestmaps.js
View
@@ -2437,19 +2437,6 @@ var MM = com.modestmaps = {
return this;
},
- /*
- panZoom: function(dx, dy, zoom) {
- this.coordinate.column -= dx / this.tileSize.x;
- this.coordinate.row -= dy / this.tileSize.y;
- this.coordinate = this.coordinate.zoomTo(zoom);
-
- // Defer until the browser is ready to draw.
- MM.getFrame(this.getRedraw());
- this.dispatchCallback('panned', [dx, dy]);
- return this;
- },
- */
-
panLeft: function() { return this.panBy(100, 0); },
panRight: function() { return this.panBy(-100, 0); },
panDown: function() { return this.panBy(0, -100); },
13 src/map.js
View
@@ -199,19 +199,6 @@
return this;
},
- /*
- panZoom: function(dx, dy, zoom) {
- this.coordinate.column -= dx / this.tileSize.x;
- this.coordinate.row -= dy / this.tileSize.y;
- this.coordinate = this.coordinate.zoomTo(zoom);
-
- // Defer until the browser is ready to draw.
- MM.getFrame(this.getRedraw());
- this.dispatchCallback('panned', [dx, dy]);
- return this;
- },
- */
-
panLeft: function() { return this.panBy(100, 0); },
panRight: function() { return this.panBy(-100, 0); },
panDown: function() { return this.panBy(0, -100); },
Please sign in to comment.
Something went wrong with that request. Please try again.