Skip to content

Commit e4a804c

Browse files
fix 漏兼容 ol 矢量瓦片style 传 url 情况下相对路径不全
1 parent 1b66a94 commit e4a804c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/openlayers/overlay/VectorTileSuperMapRest.js

+1
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ export class VectorTileSuperMapRest extends VectorTile {
317317
withCredentials: options.withCredentials,
318318
headers: options.headers
319319
});
320+
this.baseUrl = url;
320321
style = await response.json();
321322
}
322323
await this._fillByStyleJSON(style, options.source);

0 commit comments

Comments
 (0)