Skip to content

Commit

Permalink
fix ol webmap ut
Browse files Browse the repository at this point in the history
  • Loading branch information
xilanhuaweidapao committed Jan 14, 2025
1 parent 40eee05 commit 802087b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/openlayers/mapping/WebMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -4822,6 +4822,7 @@ export class WebMap extends Observable {
let url = dataSource.url;
if (this.isRestMapMapboxStyle(layerInfo)) {
url = url.replace(restMapMVTStr, '');
url = this.getRequestUrl(url + '.json');
}
if (url.indexOf('/restjsr/') > -1 && !/\.json$/.test(url)) {
url = this.getRequestUrl(url + '.json');
Expand Down

0 comments on commit 802087b

Please sign in to comment.