|
@@ -26,16 +26,14 @@ export async function modelSDKFactory(
|
|
dom: HTMLDivElement | HTMLIFrameElement
|
|
dom: HTMLDivElement | HTMLIFrameElement
|
|
): Promise<ModelExpose> {
|
|
): Promise<ModelExpose> {
|
|
let center: number[] | undefined = undefined;
|
|
let center: number[] | undefined = undefined;
|
|
-
|
|
|
|
- if (caseProject.value) {
|
|
|
|
- const lonlatStr = caseProject.value?.latAndLong || "22.364093,113.600356";
|
|
|
|
- const lonlat = lonlatStr.split(",").map(Number);
|
|
|
|
- const gcenter = aMapToWgs84({
|
|
|
|
- x: lonlat[1],
|
|
|
|
- y: lonlat[0],
|
|
|
|
- });
|
|
|
|
- center = [gcenter.x, gcenter.y];
|
|
|
|
- }
|
|
|
|
|
|
+ const lonlatStr = caseProject.value?.latAndLong || "22.364093,113.600356";
|
|
|
|
+ // const lonlatStr = caseProject.value?.latAndLong || "22.364093,113.600356";
|
|
|
|
+ const lonlat = lonlatStr.split(",").map(Number);
|
|
|
|
+ const gcenter = aMapToWgs84({
|
|
|
|
+ x: lonlat[1],
|
|
|
|
+ y: lonlat[0],
|
|
|
|
+ });
|
|
|
|
+ center = [gcenter.x, gcenter.y];
|
|
if (type === fuseModel) {
|
|
if (type === fuseModel) {
|
|
if (!fuseInitialed) {
|
|
if (!fuseInitialed) {
|
|
await initialSDK({
|
|
await initialSDK({
|
|
@@ -187,8 +185,8 @@ export async function exposeFactory(
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|
|
- platforms[SceneType.DSFXJ] = platforms[SceneType.SWYDSS] = platforms[SceneType.SWSS];
|
|
|
|
- platforms[SceneType.SWYDMX] =
|
|
|
|
|
|
+ platforms[SceneType.SWYDSS] = platforms[SceneType.SWSS];
|
|
|
|
+ platforms[SceneType.DSFXJ] = platforms[SceneType.SWYDMX] =
|
|
platforms[SceneType.SWSSMX] =
|
|
platforms[SceneType.SWSSMX] =
|
|
platforms[SceneType.SWKJ] =
|
|
platforms[SceneType.SWKJ] =
|
|
platforms[SceneType.SWKK];
|
|
platforms[SceneType.SWKK];
|