code: function uploadMap(map, e) {
      let reader = new window.FileReader();
  
      reader.readAsText(e.target.files[0]);
  
      reader.onload = function () {
          let data = JSON.parse(event.target.result);
          map.new(data);
      };
  }
docs: Upload a mmp json to map