mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
Be more d3y
This commit is contained in:
+6
-11
@@ -82,17 +82,12 @@ var iD = function(container) {
|
||||
});
|
||||
|
||||
var zoom = bar.append('div')
|
||||
.attr('class', 'zoombuttons');
|
||||
|
||||
zoom.append('button')
|
||||
.attr('class', 'zoom-in')
|
||||
.text('+')
|
||||
.on('click', map.zoomIn);
|
||||
|
||||
zoom.append('button')
|
||||
.attr('class', 'zoom-out')
|
||||
.text('–')
|
||||
.on('click', map.zoomOut);
|
||||
.attr('class', 'zoombuttons')
|
||||
.selectAll('button')
|
||||
.data([['zoom-in', '+', map.zoomIn], ['zoom-out', '-', map.zoomOut]])
|
||||
.enter().append('button').attr('class', function(d) { return d[0]; })
|
||||
.text(function(d) { return d[1]; })
|
||||
.on('click', function(d) { return d[2](); });
|
||||
|
||||
container.append('div')
|
||||
.attr('class', 'inspector-wrap');
|
||||
|
||||
Reference in New Issue
Block a user