Created
June 29, 2020 01:48
-
-
Save tmcw/cfb914bdb40f432d6400ef53c0dd18e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const [map, geojson] = await Promise.all([ | |
new Promise((resolve) => map.on("load", () => resolve(map))), | |
fetch("foo.json").then((r) => r.json()), | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment