diff options
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/map/Map.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modern/src/map/Map.js b/modern/src/map/Map.js index 2617b98..d5e8617 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), )); |