Skip to content

Commit

Permalink
Update src/bare_americana.js
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Lee <[email protected]>
  • Loading branch information
ZeLonewolf and jleedev authored Oct 30, 2023
1 parent 5506f1d commit 1deb28d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bare_americana.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1deb28d

Please sign in to comment.