Cleaned map interaction props and changed drawing interaction handle

This commit is contained in:
Mitchell McCaffrey
2020-04-27 17:40:36 +10:00
parent 2cf93ab77f
commit e08dc60f5f
3 changed files with 27 additions and 21 deletions

View File

@@ -221,15 +221,13 @@ function Map({
<MapInteraction
map={map}
aspectRatio={aspectRatio}
selectedTool={selectedToolId}
toolSettings={toolSettings[selectedToolId]}
isEnabled={selectedToolId === "pan"}
controls={(allowMapChange || allowDrawing) && mapControls}
>
{map && mapImage}
{map && mapDrawing}
{map && mapTokens}
</MapInteraction>
{allowTokenChange && (
<>
<ProxyToken