mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
fixed map clicks on sticker drag
This commit is contained in:
parent
67eeaa7293
commit
7bdf07cae5
7 changed files with 150 additions and 141 deletions
|
@ -3,17 +3,16 @@ import { IStickerDump } from '~/redux/map/types';
|
|||
import { FeatureGroup, Map } from 'leaflet';
|
||||
import { Sticker } from '~/containers/map/Sticker';
|
||||
import { mapSetSticker, mapDropSticker } from '~/redux/map/actions';
|
||||
import { MapContainer } from '~/constants/map';
|
||||
|
||||
interface IProps {
|
||||
stickers: IStickerDump[];
|
||||
is_editing: boolean;
|
||||
map: Map;
|
||||
map: MapContainer;
|
||||
mapSetSticker: typeof mapSetSticker;
|
||||
mapDropSticker: typeof mapDropSticker;
|
||||
}
|
||||
|
||||
// const { FC, useContext, useState, useEffect } = React;
|
||||
|
||||
const Stickers: React.FC<IProps> = React.memo(
|
||||
({ stickers, is_editing, map, mapSetSticker, mapDropSticker }) => {
|
||||
const [layer, setLayer] = React.useState<FeatureGroup>(null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue