mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 17:03:38 +00:00
usar el sistema de coordenadas simplificado
This commit is contained in:
parent
cf5341eec4
commit
c68508f89a
1 changed files with 4 additions and 1 deletions
|
@ -71,7 +71,10 @@ export default class extends Controller {
|
||||||
|
|
||||||
get map () {
|
get map () {
|
||||||
if (!this._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);
|
L.svgOverlay(this.svgOverlay, this.bounds).addTo(this._map);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue