mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Console warnings for Mapbox Standard Style

Open iperiago opened this issue 2 weeks ago • 1 comments

mapbox-gl-js version: 3.17.0

Question

Displaying a map with Mapbox Standard Style triggers warnings in browser console.

see https://docs.mapbox.com/map-styles/standard/guides/ =>

Image

I understand those warnings are mostly inconsequential, but they are nevertheless annoying and not present with any other style.

iperiago avatar Dec 09 '25 11:12 iperiago

Agreed, I've been annoyed by those warnings myself but never got to investigating their removal. Will try to get to the bottom of this.

mourner avatar Dec 10 '25 10:12 mourner

I found it on https://github.com/mapbox/mapbox-gl-js/blob/main/src/data/usvg/usvg_pb_renderer.ts#L25 But I don't know why this line of console.warn needs to be added🤔

GeoDaoyu avatar Dec 13 '25 02:12 GeoDaoyu