北京经济技术开发区经开区虚拟城市项目-【前端】-Web
static/Signalling/js/DataManager.js
@@ -74,6 +74,9 @@
function getData(id, callback) {
    fetch("./static/Signalling/data/" + list[id]).then(response => response.arrayBuffer()).then(data => {
        // console.log(data);
        // debugger
        var dataView = new DataView(data);
        signallingData.values[id] = [];
        for (var i = 0; i < dataView.byteLength; i += 2) {
@@ -113,6 +116,7 @@
}
function requestData(callback) {
    fetch("./static/Signalling/data/positions.dat").then(response => response.arrayBuffer()).then(data => {
        var dataView = new DataView(data);
        for (var i = 0; i < dataView.byteLength; i += 8) {
            let x = dataView.getFloat32(i, true);