Skip to content

root relative paths in style.json work with raster tiles, glyphs and sprites but not with vector tiles #6818

@lukasalexanderweber

Description

@lukasalexanderweber

In Maputnik we've introduced that root relative paths are valid urls in a stylefile. This makes porting easier as already described in #182 (comment). Maputnik uses maplibre-gl-js 5.13.0. When creating this PR, I've only tested with raster tiles. And it worked. However, I get errors when using vector tiles

I can confirm that root relative paths are correctly resolved for

  • raster sources
  • glyphs
  • sprites

vector tiles are missing.

when comparing

vector_tile_source with image_source or glyph loading it seems quite similar, all use the request_manager. Maybe someone could point me to where this problem might come from

maplibre-gl-js version:

5.13.0

browser:

firefox

Expected Behavior

Image Image

Actual Behavior

Image Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions