diff --git a/src/containers/map/Sticker/index.tsx b/src/containers/map/Sticker/index.tsx index 2f100be..c8567fb 100644 --- a/src/containers/map/Sticker/index.tsx +++ b/src/containers/map/Sticker/index.tsx @@ -131,6 +131,11 @@ const Sticker: React.FC = ({ angle.current = sticker.angle; }, [sticker.angle]) + useEffect(() => { + if (!layer) return; + layer.setLatLng(sticker.latlng) + }, [layer, sticker.latlng]) + // Attaches onMoveFinished event to item React.useEffect(() => { if (!layer) return;