Vertdure commited on
Commit
be912e9
·
verified ·
1 Parent(s): f780d89

Update pages/HelvetiMap.py

Browse files
Files changed (1) hide show
  1. pages/HelvetiMap.py +2 -2
pages/HelvetiMap.py CHANGED
@@ -42,7 +42,7 @@ class PrintFormatControl(MacroElement):
42
  };
43
  printFormatControl.addTo({{ this._parent.get_name() }});
44
 
45
- document.getElementById('apply-format').addEventListener('click', function() {
46
  var format = document.getElementById('paper-format').value;
47
  var scale = parseInt(document.getElementById('scale-input').value);
48
  var center = {{ this._parent.get_name() }}.getCenter();
@@ -91,7 +91,7 @@ class PrintFormatControl(MacroElement):
91
  [bounds[0][1], bounds[0][0]],
92
  [bounds[1][1], bounds[1][0]]
93
  ];
94
- });
95
  {% endmacro %}
96
  """)
97
 
 
42
  };
43
  printFormatControl.addTo({{ this._parent.get_name() }});
44
 
45
+ document.getElementById('apply-format').onclick = function() {
46
  var format = document.getElementById('paper-format').value;
47
  var scale = parseInt(document.getElementById('scale-input').value);
48
  var center = {{ this._parent.get_name() }}.getCenter();
 
91
  [bounds[0][1], bounds[0][0]],
92
  [bounds[1][1], bounds[1][0]]
93
  ];
94
+ };
95
  {% endmacro %}
96
  """)
97