From 1deb28d942987912a95f912d8f714217fde0ac8f Mon Sep 17 00:00:00 2001 From: Brian Sperlongano Date: Sun, 29 Oct 2023 22:07:00 -0400 Subject: [PATCH] Update src/bare_americana.js Co-authored-by: Josh Lee --- src/bare_americana.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bare_americana.js b/src/bare_americana.js index 558f94379..761cab056 100644 --- a/src/bare_americana.js +++ b/src/bare_americana.js @@ -6,8 +6,9 @@ import { createMap, loadRTLPlugin, buildStyle } from "./js/map_builder.js"; loadRTLPlugin(); -const initializeMap = () => { - return createMap(window, (shields) => shieldDefLoad(), { +const initializeMap = async () => { + await document.fonts?.ready; + return createMap(window, (shields) => shieldDefLoad(shields), { container: "map", // container id hash: "map", antialias: true,