Cleanup, fix geocoding

This commit is contained in:
Tom MacWright
2012-12-04 16:46:03 -05:00
parent d5cc764a1d
commit 851efdf01f
2 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ window.iD = function(container) {
});
window.grid = function(resp) {
map.setCenter([resp.results[0][0].lon, resp.results[0][0].lat]);
map.center([resp.results[0][0].lon, resp.results[0][0].lat]);
};
bar.append('div')
+5 -6
View File
@@ -75,11 +75,6 @@ iD.Map = function() {
redraw();
}
}),
nodeline = function(d) {
return 'M' + d.nodes.map(ll2a).map(projection).map(iD.util.geo.roundCoords).join('L');
},
getline = function(d) { return d._line; },
key = function(d) { return d.id; },
background = iD.Background()
.projection(projection)
.scaleExtent([0, 20]),
@@ -142,6 +137,11 @@ iD.Map = function() {
function ll2a(o) { return [o.lon, o.lat]; }
function pxCenter() { return [dimensions[0] / 2, dimensions[0] / 2]; }
function classActive(d) { return d.id === selection; }
function getline(d) { return d._line; }
function key(d) { return d.id; }
function nodeline(d) {
return 'M' + d.nodes.map(ll2a).map(projection).map(iD.util.geo.roundCoords).join('L');
}
function hideInspector() {
d3.select('.inspector-wrap').style('display', 'none');
@@ -425,7 +425,6 @@ iD.Map = function() {
return [l[0] * scale + translate[0], l[1] * scale + translate[1]];
}
map.dblclickEnable = function(_) {
if (!arguments.length) return dblclickEnabled;
dblclickEnabled = _;