example/app.js
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);
    };
}
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);
    };
}
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 ) ; } ; }
Upload a mmp json to map
Upload a mmp json to map