fix: BUG修改
This commit is contained in:
parent
5d3d905ca5
commit
cf332b3d7f
@ -776,7 +776,7 @@ const getCanvas = (text: any) => {
|
||||
return new Promise(resolve => {
|
||||
const img = new Image(19, 25);
|
||||
img.crossOrigin = "Anonymous";
|
||||
img.src = "src/assets/images/Mars3DImg/poi/indexMark.png";
|
||||
img.src = new URL("@/assets/images/Mars3DImg/poi/indexMark.png", import.meta.url).href;
|
||||
img.onload = () => {
|
||||
const canvas = document.createElement("canvas");
|
||||
canvas.width = 19;
|
||||
|
||||
@ -568,8 +568,8 @@ const saveAddLayer = async (subGraphicLayer: any) => {
|
||||
}
|
||||
};
|
||||
// 单独保存空间分析操作
|
||||
const saveAnalysisLayer = async (subGraphicLayer: any) => {
|
||||
const geojson = subGraphicLayer.getGraphics(false);
|
||||
const saveAnalysisLayer = async (subLayerData: any) => {
|
||||
const geojson = subLayerData;
|
||||
console.log(geojson);
|
||||
let allArr = layerJsonArr.value.concat(geojson);
|
||||
let requestData: any = { configKey: "layerConfig", configValue: JSON.stringify(allArr) };
|
||||
@ -788,7 +788,7 @@ const getCanvas = (text: any) => {
|
||||
return new Promise(resolve => {
|
||||
const img = new Image(19, 25);
|
||||
img.crossOrigin = "Anonymous";
|
||||
img.src = "src/assets/images/Mars3DImg/poi/indexMark.png";
|
||||
img.src = new URL("@/assets/images/Mars3DImg/poi/indexMark.png", import.meta.url).href;
|
||||
img.onload = () => {
|
||||
const canvas = document.createElement("canvas");
|
||||
canvas.width = 19;
|
||||
|
||||
@ -35,6 +35,7 @@
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
margin-top: 100px;
|
||||
text-align: center;
|
||||
}
|
||||
.login-title-bg {
|
||||
width: 1047px;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user