5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 14:11:41 +00:00

ajustar al contenido

This commit is contained in:
f 2022-02-01 18:28:27 -03:00
parent c68508f89a
commit c5c96c8f3c

View file

@ -72,11 +72,14 @@ export default class extends Controller {
get map () {
if (!this._map) {
this._map = L.map(this.mapTarget, {
minZoom: -5,
crs: L.CRS.Simple,
zoomSnap: 0.1
}).setView(this.coords, 13);
L.svgOverlay(this.svgOverlay, this.bounds).addTo(this._map);
const bounds = this.bounds;
L.svgOverlay(this.svgOverlay, bounds).addTo(this._map);
this._map.fitBounds(bounds);
this._map.setMaxBounds(bounds);