mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
19 lines
494 B
JavaScript
19 lines
494 B
JavaScript
import { map, tileLayer } from 'leaflet';
|
|
|
|
import 'leaflet/dist/leaflet.css';
|
|
import 'leaflet-editable';
|
|
import { PROVIDER } from '$config';
|
|
|
|
export class Map {
|
|
constructor({ container }) {
|
|
this.map = map(container, { editable: true }).setView([55.0153275, 82.9071235], 13);
|
|
|
|
this.tileLayer = tileLayer(PROVIDER, {
|
|
attribution: 'Независимое Велосообщество',
|
|
maxNativeZoom: 18,
|
|
maxZoom: 18,
|
|
});
|
|
|
|
this.tileLayer.addTo(this.map);
|
|
}
|
|
}
|