MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / loadData

Function loadData

examples/maplibregl/js/ThreeApplication.js:43–56  ·  view source on GitHub ↗
(onComplete)

Source from the content-addressed store, hash-verified

41 var manager, slowLoopIntervalId, is3DDataLoaded = false;
42
43 function loadData(onComplete) {
44 var url = '../data/ThreeBuildingData.json';
45 $.ajax({
46 dataType: 'json',
47 url: url,
48 success: function (result) {
49 app.data = new DataProcessor(result);
50 onComplete();
51 },
52 error: function (jqXHR, status, errorThrown) {
53 console.log(status, errorThrown);
54 }
55 });
56 }
57
58 function loadResources() {
59 manager = new THREE.LoadingManager();

Callers 1

Calls 1

onCompleteFunction · 0.85

Tested by

no test coverage detected