mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 14:21:41 +00:00
ajustar al contenido
This commit is contained in:
parent
c68508f89a
commit
c5c96c8f3c
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue