The map data bundle (binary zip, parsed JSON, or raw MVF)
OptionaluserOptions: TGetMapDataOptionsOptional configuration including credentials for outdoor view and analytics
A Promise that resolves to a MapData instance
const response = await fetch('map-bundle.zip');
const buffer = new Uint8Array(await response.arrayBuffer());
const mapData = await hydrateMapData({ type: 'binary', main: buffer });
// Check which data source was detected
const locations = mapData.isEnterpriseMode
? mapData.getByType('enterprise-location')
: mapData.getByType('location-profile');
Load a MapData instance from a backup bundle (zip file or parsed MVF).
This function automatically detects whether the data is from a Maker or CMS/Enterprise source by checking for the presence of the
enterprisefield in the MVF data. UsemapData.isEnterpriseModeafter loading to determine which data types to access.