changed user location marker

This commit is contained in:
muerwre 2018-08-27 17:43:31 +07:00
parent d39ec1588c
commit 16d04bd6bb
3 changed files with 10 additions and 39 deletions

View file

@ -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',