maptalks / issues

Repo of issues for webgl layers
3 stars 0 forks source link

vt和3dtile支持用户配置需要忽略的http 状态码 #679

Closed deyihu closed 4 months ago

deyihu commented 4 months ago
const layer=new VectorTileLayer('layer',{
 ignoreHttpCodes:[404,400,204],

})

当用户配置了需要忽略的http codes时,在数据请求时,如果http code在这个列表里就不要console.error,目前我看是写死的

t && 404 !== t.status && 204 !== t.status && console.error(r, t),

应该放开让用户配置,哪些错误请求需要忽略完全交给用户

deyihu commented 4 months ago

经过分析用户的需求:

https://github.com/maptalks/maptalks.js/pull/2333