首页 / 浏览问题 / 三维GIS / 问题详情
添加矢量瓦片mvt报错
7EXP 2023年12月28日

添加mvt矢量瓦片报错,代码如下

var url = "http://www.supermapol.com/realspace/services/map-mvt-JingJinDiQuDiTu/restjsr/v1/vectortile/maps/%E4%BA%AC%E6%B4%A5%E5%9C%B0%E5%8C%BA%E5%9C%B0%E5%9B%BE";
        var mvtMap = scene.addVectorTilesMap({
            url: url,
            canvasWidth: 512,
            name: 'testMVT',
            viewer: viewer
        });

报错如下:

An error occurred while rendering. Rendering has stopped.
Error: failed to invert matrix
Error: failed to invert matrix
    at _0x579531._calcMatrices (http://127.0.0.1:5173/static/libs/Build/Cesium/Cesium.js:187:1145300)
    at set zoom [as zoom] (http://127.0.0.1:5173/static/libs/Build/Cesium/Cesium.js:187:1138710)
    at M$10.update (http://127.0.0.1:5173/static/libs/Build/Cesium/Cesium.js:187:1163199)
    at Pr (http://127.0.0.1:5173/static/libs/Build/Cesium/Cesium.js:293:4042807)
    at Qe (http://127.0.0.1:5173/static/libs/Build/Cesium/Cesium.js:293:4039050)
    at je (http://127.0.0.1:5173/static/libs/Build/Cesium/Cesium.js:293:4035364)
    at rn (http://127.0.0.1:5173/static/libs/Build/Cesium/Cesium.js:293:4050624)
    at nt$2 (http://127.0.0.1:5173/static/libs/Build/Cesium/Cesium.js:293:4051274)
    at M$4.render (http://127.0.0.1:5173/static/libs/Build/Cesium/Cesium.js:293:4053206)
    at p.render (http://127.0.0.1:5173/static/libs/Build/Cesium/Cesium.js:369:676798)

1个回答

您好。

示例测试MVT加载是没有问题的

请检查您的代码

也可以查看官方示例http://support.supermap.com.cn:8090/webgl/Cesium/examples/webgl/editor.html#MVT

4,151EXP 2023年12月29日
...