MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / encodeUrlPath

Function encodeUrlPath

src/utils/urlUtils.ts:107–112  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

105 * are unchanged.
106 */
107export function encodeUrlPath(path: string): string {
108 return path
109 .split('/')
110 .map((segment) => encodeURIComponent(segment))
111 .join('/');
112}
113
114/**
115 * Fetch a splat file from a URL on demand (e.g. when switching to a lazy tile).

Callers 2

joinSplatUrlFunction · 0.90
joinManifestUrlPathFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected