Fix locate control popup on the main map to use new translations
Fixes #3072
This commit is contained in:
parent
2b8d2bcb9f
commit
810e4da85a
1 changed files with 3 additions and 3 deletions
|
@ -108,9 +108,9 @@ $(document).ready(function () {
|
|||
iconLoading: "icon geolocate",
|
||||
strings: {
|
||||
title: I18n.t("javascripts.map.locate.title"),
|
||||
metersUnit: I18n.t("javascripts.map.locate.metersUnit"),
|
||||
feetUnit: I18n.t("javascripts.map.locate.feetUnit"),
|
||||
popup: I18n.t("javascripts.map.locate.popup")
|
||||
popup: function (options) {
|
||||
return I18n.t("javascripts.map.locate." + options.unit + "Popup", { count: options.distance });
|
||||
}
|
||||
}
|
||||
}).addTo(map);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue