MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / isAbsoluteURL

Method isAbsoluteURL

src/common/mapping/WebMapV2.js:3249–3256  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

3247 }
3248
3249 isAbsoluteURL(url) {
3250 try {
3251 const res = new URL(url);
3252 return !!res;
3253 } catch (_) {
3254 return false;
3255 }
3256 }
3257
3258 relative2absolute(url, base) {
3259 let newUrl = new URL(url, base);

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected