mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Cleanup, fix geocoding
This commit is contained in:
+1
-1
@@ -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')
|
||||
|
||||
@@ -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 = _;
|
||||
|
||||
Reference in New Issue
Block a user