Add more explanatory helptext

This commit is contained in:
Tom MacWright
2013-01-08 11:56:40 -05:00
parent 32dad42ec4
commit c4e88ad8e9
3 changed files with 9 additions and 3 deletions

View File

@@ -174,8 +174,11 @@ window.iD = function(container) {
var zoom = container.append('div')
.attr('class', 'zoombuttons map-control')
.selectAll('button')
.data([['zoom-in', '+', map.zoomIn], ['zoom-out', '-', map.zoomOut]])
.enter().append('button').attr('class', function(d) { return d[0] + ' narrow'; })
.data([['zoom-in', '+', map.zoomIn, 'Zoom In'], ['zoom-out', '-', map.zoomOut, 'Zoom Out']])
.enter()
.append('button')
.attr('class', function(d) { return d[0] + ' narrow'; })
.attr('title', function(d) { return d[3]; })
.on('click', function(d) { return d[2](); })
.append('span')
.attr('class', function(d) {
@@ -191,6 +194,7 @@ window.iD = function(container) {
.attr('class', 'geolocate-control map-control')
.append('button')
.attr('class', 'narrow')
.attr('title', 'Show My Location')
.text('G')
.on('click', function() {
navigator.geolocation.getCurrentPosition(geolocateSuccess, geolocateError);

View File

@@ -35,7 +35,8 @@ iD.geocoder = function() {
}
var button = selection.append('button')
.attr('class','narrow')
.attr('class', 'narrow')
.attr('title', 'Find A Location')
.html('<span class=\'geocode icon\'></span>')
.on('click', toggle);

View File

@@ -31,6 +31,7 @@ iD.layerswitcher = function(map) {
var button = selection
.append('button')
.attr('class', 'narrow')
.attr('title', 'Layer Settings')
.html("<span class='layers icon'></span>")
.on('click.layerswitcher-toggle', toggle);