Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
feat:修改undefined为null
· 7a3cf3cb
xhm
authored
Dec 11, 2024
7a3cf3cb
feat:地图的环境变量
· 82abe5ed
xhm
authored
Dec 11, 2024
82abe5ed
Hide whitespace changes
Inline
Side-by-side
CustomOverlay/index.tsx
View file @
82abe5ed
...
...
@@ -103,7 +103,7 @@ const CustomOverlay: React.FC<PropsWithChildren<CustomOverlayProps>> = (
};
},
[
children
,
position
]);
return
undefined
;
return
null
;
};
export
default
CustomOverlay
;
Label/index.tsx
View file @
82abe5ed
...
...
@@ -38,7 +38,7 @@ const Label: React.FC<LabelProps> = (props) => {
position
:
{
x
:
position
[
0
],
y
:
position
[
1
],
z
:
10
,
z
:
10
0
,
},
});
...
...
@@ -53,7 +53,7 @@ const Label: React.FC<LabelProps> = (props) => {
};
},
[
position
]);
return
undefined
;
return
null
;
};
export
default
Label
;
Maker/index.tsx
View file @
82abe5ed
...
...
@@ -30,7 +30,7 @@ const Marker: React.FC<MakerProps> = (props) => {
position
:
{
x
:
position
[
0
],
y
:
position
[
1
],
z
:
1
0
,
z
:
40
0
,
},
});
...
...
@@ -45,7 +45,7 @@ const Marker: React.FC<MakerProps> = (props) => {
};
},
[
position
,
icon
]);
return
undefined
;
return
null
;
};
export
default
Marker
;
Polygon/index.tsx
View file @
82abe5ed
...
...
@@ -50,7 +50,7 @@ const Polygon: React.FC<PolygonProps> = (props) => {
};
},
[
points
]);
return
undefined
;
return
null
;
};
export
default
Polygon
;
mapEnv.ts
View file @
82abe5ed
const
IS_PROD
=
process
.
env
.
NODE_ENV
===
'
production
'
?
true
:
false
;
let
IS_PROD
=
process
.
env
.
NODE_ENV
===
'
production
'
;
if
(
process
.
env
.
MAP_ENV
){
//MAP_ENV替换
IS_PROD
=
process
.
env
.
MAP_ENV
===
'
zww
'
}
const
address
=
IS_PROD
?
'
http://10.1.214.174:8099
'
...
...