0001-maps-add-tooltip-to-geolocate-button-26374.patch
combo/apps/maps/static/js/combo.map.js | ||
---|---|---|
144 | 144 |
}).addTo(map); |
145 | 145 |
} |
146 | 146 |
if (L.Control.Gps && $map_widget.data('include-geoloc-button')) { |
147 |
var gps_control = new L.Control.Gps({position: map_controls_position}); |
|
147 |
var gps_control = new L.Control.Gps({ |
|
148 |
position: map_controls_position, |
|
149 |
tooltipTitle: gettext('Display my position')}); |
|
148 | 150 |
map.addControl(gps_control); |
149 | 151 |
} |
150 | 152 |
combo/apps/maps/static/js/leaflet-gps.js | ||
---|---|---|
34 | 34 |
fillColor: '#f23', |
35 | 35 |
fillOpacity: 1 |
36 | 36 |
}, |
37 |
position: 'topleft' |
|
37 |
position: 'topleft', |
|
38 |
tooltipTitle: 'Display my position' |
|
38 | 39 |
}, |
39 | 40 | |
40 | 41 |
initialize: function(options) { |
... | ... | |
54 | 55 |
this._button = L.DomUtil.create('a', 'gps-button', this._container); |
55 | 56 |
this._button.href = '#'; |
56 | 57 |
this._button.text = '\uf192'; |
58 |
this._button.title = this.options.tooltipTitle; |
|
57 | 59 |
this._button.style.fontFamily = 'FontAwesome'; |
58 | 60 |
L.DomEvent |
59 | 61 |
.on(this._button, 'click', L.DomEvent.stop, this) |
combo/locale/fr/LC_MESSAGES/djangojs.po | ||
---|---|---|
7 | 7 |
msgstr "" |
8 | 8 |
"Project-Id-Version: combo(js) 0\n" |
9 | 9 |
"Report-Msgid-Bugs-To: \n" |
10 |
"POT-Creation-Date: 2018-09-13 07:22+0000\n"
|
|
11 |
"PO-Revision-Date: 2018-09-13 09:29+0200\n"
|
|
10 |
"POT-Creation-Date: 2018-09-13 07:51+0000\n"
|
|
11 |
"PO-Revision-Date: 2018-09-13 09:51+0200\n"
|
|
12 | 12 |
"Last-Translator: Frederic Peters <<fpeters@entrouvert.com>\n" |
13 | 13 |
"Language: French\n" |
14 | 14 |
"MIME-Version: 1.0\n" |
... | ... | |
23 | 23 |
#: apps/maps/static/js/combo.map.js:143 |
24 | 24 |
msgid "Zoom out" |
25 | 25 |
msgstr "Dézoomer" |
26 | ||
27 |
#: apps/maps/static/js/combo.map.js:149 |
|
28 |
msgid "Display my position" |
|
29 |
msgstr "Afficher ma position" |
|
26 |
- |