@@ -11,6 +11,7 @@ import { IMaplibreWorldMapProps } from './IMaplibreWorldMapProps';
1111import MapNavigation from './MapNavigation' ;
1212import Marker from './Marker' ;
1313import { css } from '@emotion/css' ;
14+ import strings from 'ControlStrings' ;
1415import { useCleanMapStyle } from './useCleanMapStyle' ;
1516
1617const MULTI_STYLE_URLS = {
@@ -97,8 +98,8 @@ export const MaplibreWorldMap: React.FC<IMaplibreWorldMapProps> = ({
9798 // Search configuration with defaults
9899 const searchConfig = useMemo ( ( ) => ( {
99100 enabled : search ?. enabled ?? true ,
100- placeholder : search ?. placeholder ?? 'Search locations...' ,
101- searchField : search ?. searchField ?? 'name' ,
101+ placeholder : search ?. placeholder ?? strings . worldMapSearchLocations ,
102+ searchField : search ?. searchField ?? strings . worldMapSearchField ,
102103 zoomLevel : search ?. zoomLevel ?? 8 ,
103104 position : {
104105 top : '10px' ,
@@ -209,12 +210,12 @@ export const MaplibreWorldMap: React.FC<IMaplibreWorldMapProps> = ({
209210 } , [ filteredData , fitPadding ] ) ;
210211
211212 if ( ! cleanStyle ) {
212- return < Text > Loading map style… </ Text > ;
213+ return < Text > { strings . worldMapLoadintText } </ Text > ;
213214 }
214215
215216 return (
216217 < div className = { styles . container } >
217- < Subtitle1 > { title ?? 'World Map' } </ Subtitle1 >
218+ < Subtitle1 > { title ?? strings . worldMapTitle } </ Subtitle1 >
218219 < div className = { styles . mapContainer } >
219220 < Map
220221 ref = { mapRef }
@@ -259,8 +260,8 @@ export const MaplibreWorldMap: React.FC<IMaplibreWorldMapProps> = ({
259260 />
260261 { searchTerm && (
261262 < div className = { styles . searchResults } >
262- { filteredData . length } location
263- { filteredData . length !== 1 ? 's' : '' } found
263+ { filteredData . length } { strings . worldMapLocationLabel }
264+ { filteredData . length !== 1 ? 's' : '' } { strings . worldMapFoundLabel }
264265 </ div >
265266 ) }
266267 </ div >
0 commit comments