5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-04 18:55:46 +00:00

usar el sistema de coordenadas simplificado

This commit is contained in:
f 2022-02-01 18:21:32 -03:00
parent cf5341eec4
commit c68508f89a

View file

@ -71,7 +71,10 @@ export default class extends Controller {
get map () {
if (!this._map) {
this._map = L.map(this.mapTarget).setView(this.coords, 13);
this._map = L.map(this.mapTarget, {
crs: L.CRS.Simple,
zoomSnap: 0.1
}).setView(this.coords, 13);
L.svgOverlay(this.svgOverlay, this.bounds).addTo(this._map);