mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
changed user location marker
This commit is contained in:
parent
d39ec1588c
commit
16d04bd6bb
3 changed files with 10 additions and 39 deletions
|
@ -4,7 +4,6 @@ import { Editor } from '$modules/Editor';
|
|||
import { EditorPanel } from '$components/panels/EditorPanel';
|
||||
import { Fills } from '$components/Fills';
|
||||
import { DEFAULT_LOGO } from '$constants/logos';
|
||||
import { getUserLocation } from '$utils/geolocation';
|
||||
import { UserLocation } from '$components/UserLocation';
|
||||
|
||||
export class App extends React.Component {
|
||||
|
@ -38,20 +37,6 @@ export class App extends React.Component {
|
|||
setLogo = logo => {
|
||||
this.setState({ logo });
|
||||
};
|
||||
//
|
||||
// locateByGeo = () => {
|
||||
// getUserLocation(this.setMapCenterByGeo);
|
||||
// };
|
||||
//
|
||||
// setMapCenterByGeo = position => {
|
||||
// if (!position || !position.coords || !position.coords.latitude || !position.coords.longitude) return;
|
||||
//
|
||||
// const { latitude, longitude } = position.coords;
|
||||
//
|
||||
// console.log('panning to', { latitude, longitude });
|
||||
//
|
||||
// this.editor.map.map.panTo([latitude, longitude]);
|
||||
// };
|
||||
|
||||
editor = new Editor({
|
||||
container: 'map',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue