Skip to main content

flywave-mapview.mapviewoptions.uriresolver

Home > @flywave/flywave-mapview > MapViewOptions > uriResolver

MapViewOptions.uriResolver property

Resolve URI referenced in MapView assets using this resolver.

Use, to support application/deployment specific URIs into actual URLs that can be loaded with fetch.

Example:

uriResolver: new PrefixMapUriResolver({
"local://poiMasterList": "/assets/poiMasterList.json",
// will match only 'local//:poiMasterList' and
// resolve to `/assets/poiMasterList.json`
"local://icons/": "/assets/icons/"
// will match only 'local//:icons/ANYPATH' (and similar) and
// resolve to `/assets/icons/ANYPATH`
})

Signature:

uriResolver?: UriResolver;