MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / relative2absolute

Method relative2absolute

src/common/mapping/WebMapV2.js:3258–3264  ·  view source on GitHub ↗
(url, base)

Source from the content-addressed store, hash-verified

3256 }
3257
3258 relative2absolute(url, base) {
3259 let newUrl = new URL(url, base);
3260 if (newUrl && newUrl.href) {
3261 return decodeURIComponent(newUrl.href);
3262 }
3263 return null;
3264 }
3265 };
3266}

Callers 4

_createMVTBaseLayerMethod · 0.95
createMVTLayerMethod · 0.80
_fillByStyleJSONMethod · 0.80
_handleRelativeUrlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected