ol-mapbox-style icon indicating copy to clipboard operation
ol-mapbox-style copied to clipboard

Relative path handling regression

Open mike-000 opened this issue 3 years ago • 1 comments

The various improvements to relative path handling have caused a regression to the previously working example in https://github.com/openlayers/openlayers/issues/12307#issuecomment-840436152. The url obtained via the "View Style" link does not work with OL 6.10.0 or later. The alternative and more understandable url https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer/resources/styles/ continues to work with all versions (as long a the final / is present).

mike-000 avatar Jul 04 '22 11:07 mike-000

Previously the code contained special handling for the incorrect links in Esri's TileJSON documents. These are now removed. At Esri, they know about the wrong links in their documents. I'm hoping they'll be fixing that soon.

Thanks for the hint about the trailing /. I was not aware of that.

ahocevar avatar Jul 04 '22 14:07 ahocevar