kikitte / MVTImageryProvider

A Mapbox style renderer for CesiumJS
MIT License
191 stars 50 forks source link

加载mapbox style报错 #19

Open wangxiaogang94 opened 1 year ago

wangxiaogang94 commented 1 year ago

demo可以跑通没有问题。但是mapbox官方的style。或者自定义的style都会报错。 如下 image 注释掉style中对应的配置就不再报错,但是地图就不再完整了

kikitte commented 1 year ago

麻烦提供报错的示例style呢,方便定位问题

wangxiaogang94 commented 1 year ago

谢谢。 示例在附件里。 矢量的里面有些注释的,放开就会报错。 卫星的不会报错,但是无论怎么切换卫星tiles都不会加载卫星瓦片。

------------------ 原始邮件 ------------------ 发件人: "kikitte/MVTImageryProvider" @.>; 发送时间: 2023年3月6日(星期一) 晚上11:48 @.>; @.**@.>; 主题: Re: [kikitte/MVTImageryProvider] 加载mapbox style报错 (Issue #19)

麻烦提供报错的示例style呢,方便定位问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

kikitte commented 1 year ago

抱歉,我没有看到附件,麻烦在检查下。

wangxiaogang94 commented 1 year ago

不好意思,我是邮件里添加的附件。github看不到。我重新上传。 卫星图style文件.zip 里面注释掉的放开就会报错.zip 麻烦您了。

kikitte commented 1 year ago

表达式['get', 'rank']的类型为value,因此无法在case表达式中使用,可能由于当前版本mapbox过低无法兼容该做法,因此需要声明其类型为number,可参考如下修改: image

wangxiaogang94 commented 1 year ago

@kikitte 谢谢,我试试