Skip to content
Commits on Source (2)
...@@ -103,7 +103,7 @@ const CustomOverlay: React.FC<PropsWithChildren<CustomOverlayProps>> = ( ...@@ -103,7 +103,7 @@ const CustomOverlay: React.FC<PropsWithChildren<CustomOverlayProps>> = (
}; };
}, [children, position]); }, [children, position]);
return undefined; return null;
}; };
export default CustomOverlay; export default CustomOverlay;
...@@ -38,7 +38,7 @@ const Label: React.FC<LabelProps> = (props) => { ...@@ -38,7 +38,7 @@ const Label: React.FC<LabelProps> = (props) => {
position: { position: {
x: position[0], x: position[0],
y: position[1], y: position[1],
z: 10, z: 100,
}, },
}); });
...@@ -53,7 +53,7 @@ const Label: React.FC<LabelProps> = (props) => { ...@@ -53,7 +53,7 @@ const Label: React.FC<LabelProps> = (props) => {
}; };
}, [position]); }, [position]);
return undefined; return null;
}; };
export default Label; export default Label;
...@@ -30,7 +30,7 @@ const Marker: React.FC<MakerProps> = (props) => { ...@@ -30,7 +30,7 @@ const Marker: React.FC<MakerProps> = (props) => {
position: { position: {
x: position[0], x: position[0],
y: position[1], y: position[1],
z: 10, z: 400,
}, },
}); });
...@@ -45,7 +45,7 @@ const Marker: React.FC<MakerProps> = (props) => { ...@@ -45,7 +45,7 @@ const Marker: React.FC<MakerProps> = (props) => {
}; };
}, [position, icon]); }, [position, icon]);
return undefined; return null;
}; };
export default Marker; export default Marker;
...@@ -50,7 +50,7 @@ const Polygon: React.FC<PolygonProps> = (props) => { ...@@ -50,7 +50,7 @@ const Polygon: React.FC<PolygonProps> = (props) => {
}; };
}, [points]); }, [points]);
return undefined; return null;
}; };
export default Polygon; export default Polygon;
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 const address = IS_PROD
? 'http://10.1.214.174:8099' ? 'http://10.1.214.174:8099'
......