mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 03:26:41 +07:00
current user location
This commit is contained in:
parent
5e3aa587c7
commit
a574b7393d
12 changed files with 205 additions and 77 deletions
|
@ -11,11 +11,12 @@ import { Router } from '~/map/Router';
|
|||
import { TileLayer } from '~/map/TileLayer';
|
||||
import { Stickers } from '~/map/Stickers';
|
||||
import { KmMarks } from '~/map/KmMarks';
|
||||
import { Arrows } from '~/map/Arrows';
|
||||
import { CurrentLocation } from '~/map/CurrentLocation';
|
||||
|
||||
import 'leaflet/dist/leaflet.css';
|
||||
import { selectEditorEditing, selectEditorMode } from '~/redux/editor/selectors';
|
||||
import { MODES } from '~/constants/modes';
|
||||
import { selectUserLocation } from '~/redux/user/selectors';
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
provider: selectMapProvider(state),
|
||||
|
@ -23,6 +24,7 @@ const mapStateToProps = state => ({
|
|||
stickers: selectMapStickers(state),
|
||||
editing: selectEditorEditing(state),
|
||||
mode: selectEditorMode(state),
|
||||
location: selectUserLocation(state),
|
||||
});
|
||||
|
||||
const mapDispatchToProps = {
|
||||
|
@ -41,6 +43,7 @@ const MapUnconnected: React.FC<IProps> = ({
|
|||
stickers,
|
||||
editing,
|
||||
mode,
|
||||
location,
|
||||
|
||||
mapClicked,
|
||||
mapSetSticker,
|
||||
|
@ -78,6 +81,7 @@ const MapUnconnected: React.FC<IProps> = ({
|
|||
<Router />
|
||||
|
||||
<KmMarks />
|
||||
<CurrentLocation location={location} />
|
||||
</div>,
|
||||
document.getElementById('canvas')
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue