mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
fixed layer moving
This commit is contained in:
parent
a06326fb1c
commit
7e537d87ac
1 changed files with 5 additions and 0 deletions
|
@ -131,6 +131,11 @@ const Sticker: React.FC<IProps> = ({
|
||||||
angle.current = sticker.angle;
|
angle.current = sticker.angle;
|
||||||
}, [sticker.angle])
|
}, [sticker.angle])
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (!layer) return;
|
||||||
|
layer.setLatLng(sticker.latlng)
|
||||||
|
}, [layer, sticker.latlng])
|
||||||
|
|
||||||
// Attaches onMoveFinished event to item
|
// Attaches onMoveFinished event to item
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (!layer) return;
|
if (!layer) return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue