From 4cbb539001e8ba536674373efb60160b16a5d111 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 1 Nov 2020 16:31:30 -0800 Subject: Update style names --- modern/src/map/Map.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modern') 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), )); -- cgit v1.2.3