mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 03:26:41 +07:00
now user can login
This commit is contained in:
parent
e7960a6bf8
commit
e19001ca82
25 changed files with 493 additions and 32844 deletions
|
@ -46,6 +46,9 @@ export class Editor {
|
|||
},
|
||||
[MODES.STICKERS]: {
|
||||
toggle: this.clearSticker,
|
||||
},
|
||||
[MODES.TRASH]: {
|
||||
toggle: this.clearAll,
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue