Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,为什么 scene.addS3MTilesLayerByScp 不能加载本地的 .scp 呢? #97

Open
quater23 opened this issue Sep 26, 2024 · 1 comment

Comments

@quater23
Copy link

能加载:

不能加载:

  • ./data/CBD/cbd.scp

加载代码:

 // let url = "https://www.supermapol.com/realspace/services/3D-0523/rest/realspace/datas/Building_NoCBD_5huan_WebGL/config";
      let url = "./data/CBD/cbd.scp";
      let promise = scene.addS3MTilesLayerByScp(url, { name: "cbd" });
      promise.then((layer) => {
        layer.readyPromise.promise.then(() => {
          scene.camera.setView({
            destination: layer.rectangle,
          });
          const _position = layer._position;
          viewer.scene.primitives.add(new Cesium.DebugModelMatrixPrimitive({
            modelMatrix: Cesium.Transforms.eastNorthUpToFixedFrame(_position),  // primitive to debug
            length: 1000.0,
            width: 4.0
          }));
        });
      });
`

请问这是为什么?在线地址也是请求的 .scp文件
@ggq7702
Copy link

ggq7702 commented Nov 29, 2024

上面发的在线地址是IServer发出来的,IServer对s3m内部的文件索引做了改动,所以你用其他服务器发的scp服务SDK是加载不了的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants