Moved map tokens above drawing and fixed token interaction bug
This commit is contained in:
parent
e366d88f7e
commit
bc5728ffa1
@ -214,6 +214,7 @@ function Map({
|
||||
left: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
pointerEvents: "none",
|
||||
}}
|
||||
>
|
||||
{Object.values(tokens).map((token) => (
|
||||
@ -259,7 +260,6 @@ function Map({
|
||||
}}
|
||||
/>
|
||||
{mapImage}
|
||||
{mapTokens}
|
||||
<MapDrawing
|
||||
width={mapData ? mapData.width : 0}
|
||||
height={mapData ? mapData.height : 0}
|
||||
@ -268,6 +268,7 @@ function Map({
|
||||
onShapeAdd={handleShapeAdd}
|
||||
onShapeRemove={handleShapeRemove}
|
||||
/>
|
||||
{mapTokens}
|
||||
</Box>
|
||||
</Box>
|
||||
<MapControls
|
||||
|
Loading…
Reference in New Issue
Block a user