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