Fetch public dynamic map data for a given map.
Dynamic map data includes map icons that could change over the lifecycle of a map. This includes static bases and static base build sites. Team-specific data for and forward bases are excluded. This data may update every 3 seconds.
The map name to get data for
The public dynamic map data
const dynamicPublicMapData = await foxhole.map.fetchDynamicPublicData('StonecradleHex');
Fetch static map data for a given map.
Static map data includes things that never change over the lifecycle of a map. This includes map text labels, resource nodes, and world structures. You only need to request this once per map between World Conquests.
The map name to get data for
The static map data
const staticMapData = await foxhole.map.fetchStaticData('StonecradleHex');
Fetch the number of enlistments, casualties, and other map specific information for a given map.
The map name to get data for
The number of enlistments, casualties, and other map specific information
const warReport = await foxhole.map.fetchWarReport('StonecradleHex');
A client for map data.
Example