Skip to content

Commit ff5526f

Browse files
Martin HinzMartin Hinz
authored andcommitted
took back placement of map load, fixes #340
1 parent 5b518ae commit ff5526f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/javascript/controllers/map_controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ export default class extends Controller {
1717

1818

1919
connect() {
20-
this.load()
21-
2220
var bounds = new L.LatLngBounds(
2321
new L.LatLng(-180, -180),
2422
new L.LatLng(180, 180)
@@ -77,6 +75,8 @@ export default class extends Controller {
7775

7876
// Initial view
7977
this.map.fitWorld();
78+
79+
this.load()
8080

8181
function update() {
8282
const bounds = map.getBounds();

0 commit comments

Comments
 (0)