Skip to Content
APIUtilsVariable: MAPVX_DEFAULT_PRECONNECT_HOSTS

Variable: MAPVX_DEFAULT_PRECONNECT_HOSTS

const MAPVX_DEFAULT_PRECONNECT_HOSTS: readonly string[]

Hostnames that MapVX maps typically need to talk to during the first paint: vector tiles, sprite, glyphs and indoor tile sources. Exposed so that consumer apps can call injectPreconnects(MAPVX_DEFAULT_PRECONNECT_HOSTS) without having to maintain the list themselves.

Last updated on