now user can login

This commit is contained in:
muerwre 2018-08-28 16:58:36 +07:00
parent e7960a6bf8
commit e19001ca82
25 changed files with 493 additions and 32844 deletions

View file

@ -46,6 +46,9 @@ export class Editor {
},
[MODES.STICKERS]: {
toggle: this.clearSticker,
},
[MODES.TRASH]: {
toggle: this.clearAll,
}
};

View file

@ -8,7 +8,7 @@ export class Map {
constructor({ container }) {
this.map = map(container, { editable: true }).setView([55.0153275, 82.9071235], 13);
this.tileLayer = tileLayer(providers.dgis, {
this.tileLayer = tileLayer(providers.default, {
attribution: 'Независимое Велосообщество',
maxNativeZoom: 18,
maxZoom: 18,

View file

@ -1,4 +1,5 @@
import axios from 'axios';
import { getMergedImage } from '$utils/api';
export class Shotter {
constructor({ map }) {
@ -54,13 +55,8 @@ export class Shotter {
}
makeShot = () => {
// console.log('shot', this.getTilePlacement());
const placement = this.getTilePlacement();
axios.get('http://alpha-map.vault48.org/engine/composerOrchid.php', {
params: { placement }
})
.then(console.log)
.catch(console.warn);
getMergedImage(placement);
}
}