kikitte
kikitte
@SLin0218 我这也连不了网,可能是更新了Wine的缘故。不过切换到deepin-wine可以正常联网使用,你可以试试。
当前实现需要调用MVTImageryProvider.destroy方法以释放WebGL相关资源,然后使用更改后的style重新构造MVTImageryProvider对象往Cesium里添加图层。
Sorry, 支持新样式需要更新mapbox版本,比较麻烦,应该不会有了。有些其它开发者维护的相同工具可以看下能不能解决这些问题,https://github.com/davenquinn/cesium-vector-provider,https://github.com/hongfaqiu/MVTImageryProvider,https://github.com/CesiumGS/cesium/issues/2132#issuecomment-1146543352
+1. The same usage like what zhwy said, displaying large numbers of the same model. It would be nice to see that.
最好能够提供可以复现的style例子,这有助于我们节省大量时间来重复你的问题。
是有这个问题。可以先确认下官方的mapbox gl js加载这个stylr是否有你描述的情况。 如果没有,那就是说用来渲染的mapbox renderer可能有问题,相关代码[Mapbox-vector-tiles-basic-js-renderer](https://github.com/kikitte/Mapbox-vector-tiles-basic-js-renderer/tree/master),如果你有时间的话可以从这里出发看下style怎么安排图层渲染的https://github.com/kikitte/Mapbox-vector-tiles-basic-js-renderer/blob/ee28a123dd1c4d4583da630f63652f1e4dc9687b/src/basic/renderer.js#L401。 另外也可以看下 @hongfaqiu 同学的https://github.com/hongfaqiu/MVTImageryProvider项目是否可用。
是的,[MapboxBasicRenderer](https://github.com/kikitte/Mapbox-vector-tiles-basic-js-renderer/blob/master/src/basic/renderer.js)里面没有定义Map对象,看起来[Map.adding](https://github.com/kikitte/Mapbox-vector-tiles-basic-js-renderer/blob/ee28a123dd1c4d4583da630f63652f1e4dc9687b/src/ui/map.js#L1056-L1070)其实是调用了MapBox Style类的addImage方法,可以试下MVTImageryProvider.mapboxRenderer._style.addImage是否可行。
我不确定,你可排查下是否是这块数据缺失导致渲染异常。
麻烦提供报错的示例style呢,方便定位问题
抱歉,我没有看到附件,麻烦在检查下。