aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-11-01 16:31:30 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-11-01 16:31:30 -0800
commit4cbb539001e8ba536674373efb60160b16a5d111 (patch)
tree94ab02afdf9490607a44376968ba3487ecbc908b
parente0b977f7f50b4174382df7787f63d58dac3e6ed8 (diff)
downloadtrackermap-web-4cbb539001e8ba536674373efb60160b16a5d111.tar.gz
trackermap-web-4cbb539001e8ba536674373efb60160b16a5d111.tar.bz2
trackermap-web-4cbb539001e8ba536674373efb60160b16a5d111.zip
Update style names
-rw-r--r--modern/src/map/Map.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/modern/src/map/Map.js b/modern/src/map/Map.js
index 2617b98d..d5e86171 100644
--- a/modern/src/map/Map.js
+++ b/modern/src/map/Map.js
@@ -6,6 +6,7 @@ import React, { useRef, useLayoutEffect, useEffect, useState } from 'react';
import { deviceCategories } from '../common/deviceCategories';
import { loadIcon, loadImage } from './mapUtil';
import { styleCarto, styleOsm } from './mapStyles';
+import t from '../common/localization';
const element = document.createElement('div');
element.style.width = '100%';
@@ -43,13 +44,13 @@ map.addControl(new mapboxgl.NavigationControl({
map.addControl(new SwitcherControl(
[{
- title: "styleOsm",
+ title: t('mapOsm'),
uri: styleOsm(),
}, {
- title: "styleCarto",
+ title: t('mapCarto'),
uri: styleCarto(),
}],
- 'styleOsm',
+ t('mapOsm'),
() => updateReadyValue(false),
() => updateReadyValue(true),
));