nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit a3923cc4f812b2e5828652cb405d79fca1ce5b4e
parent 5799e569669264170a204425e9fe6d41dfca4512
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Sat, 25 Feb 2017 14:55:52 +0300

added tooltips for buttons in all controls

Diffstat:
Msrc/lib/leaflet.control.coordinates/index.js | 1+
Msrc/lib/leaflet.control.jnx/index.js | 3++-
Msrc/lib/leaflet.control.layers.minimize/index.js | 1+
Msrc/lib/leaflet.control.printPages/form.html | 6++++--
Msrc/lib/leaflet.control.track-list/control-ruler.js | 1+
Msrc/lib/leaflet.control.track-list/track-list.js | 5+++--
6 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/src/lib/leaflet.control.coordinates/index.js b/src/lib/leaflet.control.coordinates/index.js @@ -24,6 +24,7 @@ L.Control.Coordinates = L.Control.extend({ onAdd: function(map) { this._map = map; var container = this._container = L.DomUtil.create('div', 'leaflet-control leaflet-control-button leaflet-control-coordinates'); + container.title = "Show coordinates at cursor"; this._stopContainerEvents(); this._field_lat = L.DomUtil.create('div', 'leaflet-control-coordinates-text', container); this._field_lon = L.DomUtil.create('div', 'leaflet-control-coordinates-text', container); diff --git a/src/lib/leaflet.control.jnx/index.js b/src/lib/leaflet.control.jnx/index.js @@ -105,7 +105,8 @@ L.Control.JNX = L.Control.extend({ this._map = map; const container = this._container = L.DomUtil.create('div', 'leaflet-control leaflet-control-jnx'); container.innerHTML = ` - <a class="button" data-bind="visible: !makingJnx(), click: onButtonClicked">JNX</a> + <a class="button" data-bind="visible: !makingJnx(), click: onButtonClicked" + title="Make JNX for Garmin receivers">JNX</a> <div data-bind=" component:{ name: 'progress-indicator', diff --git a/src/lib/leaflet.control.layers.minimize/index.js b/src/lib/leaflet.control.layers.minimize/index.js @@ -30,6 +30,7 @@ function enableMinimize(control) { const minimizeButton = L.DomUtil.create('div', 'button-minimize'); this._topRow.appendChild(minimizeButton); const expandButton = L.DomUtil.create('div', 'leaflet-control-button-toggle', container); + expandButton.title = 'Select layers'; L.DomEvent.on(expandButton, 'click', this.setExpanded, this); L.DomEvent.on(minimizeButton, 'click', this.setMinimized, this); }, diff --git a/src/lib/leaflet.control.printPages/form.html b/src/lib/leaflet.control.printPages/form.html @@ -1,4 +1,5 @@ -<div class="leaflet-control-button-toggle" data-bind="click: setExpanded"></div> +<div class="leaflet-control-button-toggle" data-bind="click: setExpanded" + title="Print map"></div> <div class="leaflet-control-content"> <table class="layout"> <tbody> @@ -63,7 +64,8 @@ </td> </tr> <tr><td colspan="2"> - <a class="button-settings image-button" data-bind="click: function() {settingsExpanded(!settingsExpanded())}"></a> + <a class="button-settings image-button" data-bind="click: function() {settingsExpanded(!settingsExpanded())}" + title="More settings"></a> <div class="settings-summary"> <span data-bind="text: pageSizeDescription"></span><br/> <span data-bind="text: resolution"></span>&nbsp;dpi, diff --git a/src/lib/leaflet.control.track-list/control-ruler.js b/src/lib/leaflet.control.track-list/control-ruler.js @@ -18,6 +18,7 @@ L.Control.TrackList.Ruler = L.Control.extend({ onAdd: function(map) { this._map = map; const container = this._container = L.DomUtil.create('div', 'leaflet-control leaflet-control-button leaflet-control-ruler'); + container.title = "Measure distance"; this._stopContainerEvents(); L.DomEvent.on(container, 'click', this.onClick, this); return container; diff --git a/src/lib/leaflet.control.track-list/track-list.js b/src/lib/leaflet.control.track-list/track-list.js @@ -59,7 +59,8 @@ L.Control.TrackList = L.Control.extend({ this._stopContainerEvents(); container.innerHTML = ` - <div class="leaflet-control-button-toggle" data-bind="click: setExpanded"></div> + <div class="leaflet-control-button-toggle" data-bind="click: setExpanded" + title="Load, edit and save tracks"></div> <div class="leaflet-control-content"> <div class="header"> <div class="hint"> @@ -73,7 +74,7 @@ L.Control.TrackList = L.Control.extend({ ><input type="text" class="input-url" placeholder="Track URL" data-bind="textInput: url, event: {keypress: onEnterPressedInInput, contextmenu: onFileInputRightClick}" ><a class="button download-url" title="Download URL" data-bind="click: loadFilesFromUrl"></a - ><a class="button menu-icon" data-bind="click: function(_,e){this.showMenu(e)}"></a> + ><a class="button menu-icon" data-bind="click: function(_,e){this.showMenu(e)}" title="Menu"></a> </div> <div style="text-align: center"> <div data-bind="