Added loading spinner to map load

This commit is contained in:
Mitchell McCaffrey
2020-04-30 22:08:03 +10:00
parent bf9c87341a
commit 86450a04db
3 changed files with 17 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ function Map({
allowMapDrawing,
allowFogDrawing,
disabledTokens,
loading,
}) {
const mapSource = useDataSource(map, defaultMapSources);
@@ -296,6 +297,7 @@ function Map({
aspectRatio={aspectRatio}
isEnabled={selectedToolId === "pan"}
controls={mapControls}
loading={loading}
>
{map && mapImage}
{map && mapDrawing}