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",
|
iconLoading: "icon geolocate",
|
||||||
strings: {
|
strings: {
|
||||||
title: I18n.t("javascripts.map.locate.title"),
|
title: I18n.t("javascripts.map.locate.title"),
|
||||||
metersUnit: I18n.t("javascripts.map.locate.metersUnit"),
|
popup: function (options) {
|
||||||
feetUnit: I18n.t("javascripts.map.locate.feetUnit"),
|
return I18n.t("javascripts.map.locate." + options.unit + "Popup", { count: options.distance });
|
||||||
popup: I18n.t("javascripts.map.locate.popup")
|
}
|
||||||
}
|
}
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue