mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 11:36:40 +07:00
redux: fixed estimated
This commit is contained in:
parent
185fe80fc5
commit
5d2c534aa9
6 changed files with 30 additions and 38 deletions
|
@ -1,7 +1,8 @@
|
|||
import React from 'react';
|
||||
import L, { marker } from 'leaflet';
|
||||
import { marker } from 'leaflet';
|
||||
import { DomMarker } from '$utils/DomMarker';
|
||||
import { Icon } from '$components/panels/Icon';
|
||||
import { editor } from '$modules/Editor';
|
||||
|
||||
export class UserLocation extends React.Component {
|
||||
constructor(props) {
|
||||
|
@ -15,7 +16,7 @@ export class UserLocation extends React.Component {
|
|||
});
|
||||
|
||||
this.mark = null;
|
||||
this.map = props.editor.map.map;
|
||||
this.map = editor.map.map;
|
||||
this.location = [];
|
||||
}
|
||||
|
||||
|
@ -24,6 +25,7 @@ export class UserLocation extends React.Component {
|
|||
}
|
||||
|
||||
getUserLocation = callback => {
|
||||
// todo: TO SAGAS
|
||||
if (!window.navigator || !window.navigator.geolocation) return;
|
||||
|
||||
window.navigator.geolocation.getCurrentPosition(position => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue