Hello,
I'm trying to add a vector tile basemap other than the basemap styles service, which works fine.
I'd like to replace the basemap styles service with other vector tile basemap like OpenStreetMap (WGS84) or GB Cartographic .
To do this, I've tried getting the styles url by going to the tile service item in agol and clicking "View style". Then I paste that url in the CodePen snippet from the 'Display a map' tutorial, but get some errors in my console:


Can anybody advice how to add vector tile basemaps in MapLibre?
Many thanks in advance,
Diego