From 4fd58d2826088c1186317688d38ee0aca8bd6796 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Tue, 23 Oct 2012 22:58:42 -0400 Subject: [PATCH] More unneeded machinery --- js/iD/renderer/Map.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/js/iD/renderer/Map.js b/js/iD/renderer/Map.js index 23ce51ea1..83fe8a2cd 100755 --- a/js/iD/renderer/Map.js +++ b/js/iD/renderer/Map.js @@ -305,11 +305,6 @@ iD.renderer.Map.prototype = { }); }, - updateCoordsFromViewportPosition: function(e) { - // summary: Update centre and bbox from the current viewport origin. - this._updateCoords(this.containerx, this.containery); - }, - setCentre: function(loc) { // summary: Update centre and bbox to a specified lat/lon. var t = this.projection.translate(), @@ -324,21 +319,6 @@ iD.renderer.Map.prototype = { setCenter: function(loc) { this.setCentre(loc); }, - _updateCoords:function(x, y) { - // summary: Set centre and bbox. - this.containerx = x; - this.containery = y; - this.centrelon = this.coord2lon(-x + this.mapwidth/2); - this.centrelat = this.coord2lat(-y + this.mapheight/2); - - this.extent = { - north: this.coord2lat(-y), - south: this.coord2lat(-y + this.mapheight), - west: this.coord2lon(-x), - east: this.coord2lon(-x + this.mapwidth) - }; - }, - clickSurface:function(e) { // summary: Handle a click on an empty area of the map. if (this.dragged && e.timeStamp==this.dragtime) { return; }