fixed map clicks on sticker drag

This commit is contained in:
Fedor Katurov 2020-01-09 12:44:25 +07:00
parent 67eeaa7293
commit 7bdf07cae5
7 changed files with 150 additions and 141 deletions

18
src/constants/map.ts Normal file
View file

@ -0,0 +1,18 @@
import { Map } from 'leaflet';
export class MapContainer extends Map {
disableClicks = () => {
this.clickable = false;
};
enableClicks = () => {
this.clickable = true;
};
public clickable = true;
}
export const MainMap = new MapContainer(document.getElementById('canvas')).setView(
[55.0153275, 82.9071235],
13
);