diff --git a/src/americana.js b/src/americana.js index 38189d337..af7da1dd4 100644 --- a/src/americana.js +++ b/src/americana.js @@ -41,18 +41,7 @@ const initializeMap = async () => { }); }; -let map; - -if ("fonts" in document) { - document.fonts.ready.then(() => { - map = initializeMap(); - }); -} else { - // Font Loading API not supported, run the code immediately - map = initializeMap(); -} - -export { map }; +export const map = await initializeMap(); let options = {};