Closed deyihu closed 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),
应该放开让用户配置,哪些错误请求需要忽略完全交给用户
经过分析用户的需求:
https://github.com/maptalks/maptalks.js/pull/2333
当用户配置了需要忽略的http codes时,在数据请求时,如果http code在这个列表里就不要console.error,目前我看是写死的
应该放开让用户配置,哪些错误请求需要忽略完全交给用户