@@ -20,7 +20,7 @@ import Background from '../../common/Map/Layers/Background';
20
20
import OSM from '../../common/Map/Layers/OSM' ;
21
21
import Hillshade from '../../common/Map/Layers/Hillshade' ;
22
22
import Platforms from '../../common/Map/Layers/Platforms' ;
23
- import osmBlankStyle from '../../common/Map/Layers/osmBlankStyle ' ;
23
+ import { useMapBlankStyle } from '../../common/Map/Layers/blankStyle ' ;
24
24
import IGN_BD_ORTHO from '../../common/Map/Layers/IGN_BD_ORTHO' ;
25
25
import { Viewport } from '../../reducers/map' ;
26
26
import { getMapMouseEventNearestFeature } from '../../utils/mapHelper' ;
@@ -58,6 +58,7 @@ const MapUnplugged: FC<PropsWithChildren<MapProps>> = ({
58
58
children,
59
59
} ) => {
60
60
const dispatch = useDispatch ( ) ;
61
+ const mapBlankStyle = useMapBlankStyle ( ) ;
61
62
const mapRef = useRef < MapRef > ( null ) ;
62
63
const [ mapState , setMapState ] = useState < MapState > ( {
63
64
isLoaded : true ,
@@ -70,6 +71,7 @@ const MapUnplugged: FC<PropsWithChildren<MapProps>> = ({
70
71
const editorState = useSelector ( ( state : { editor : EditorState } ) => state . editor ) ;
71
72
const showOSM = useSelector ( getShowOSM ) ;
72
73
const terrain3DExaggeration = useSelector ( getTerrain3DExaggeration ) ;
74
+
73
75
const extendedContext = useMemo < ExtendedEditorContextType < CommonToolState > > (
74
76
( ) => ( {
75
77
...context ,
@@ -109,7 +111,7 @@ const MapUnplugged: FC<PropsWithChildren<MapProps>> = ({
109
111
{ ...viewport }
110
112
ref = { mapRef }
111
113
style = { { width : '100%' , height : '100%' } }
112
- mapStyle = { osmBlankStyle }
114
+ mapStyle = { mapBlankStyle }
113
115
onMove = { ( e ) => setViewport ( e . viewState ) }
114
116
onMoveStart = { ( ) => setMapState ( ( prev ) => ( { ...prev , isDragging : true } ) ) }
115
117
onMoveEnd = { ( ) => {
@@ -282,7 +284,7 @@ const MapUnplugged: FC<PropsWithChildren<MapProps>> = ({
282
284
) }
283
285
</ ReactMapGL >
284
286
</ div >
285
- { children }
287
+ ; { children }
286
288
</ >
287
289
) ;
288
290
} ;
0 commit comments