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 enterprise field in the MVF data. Use mapData.isEnterpriseMode after loading to determine which data types to access.

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');