opensourceBIM / bimvie.ws

Javascript client for Building Information Modelling, using open standards like IFC, BCF and BIMSie. Using Bootstrap, BIM Surfer, etc..
GNU Affero General Public License v3.0
170 stars 85 forks source link

Javascript API not show modal in browser #141

Open mtariq68 opened 3 years ago

mtariq68 commented 3 years ago

Hi,

I am try to run sample code đź‘Ť import {BimServerClient} from 'http://localhost:8082/bimserverapi/bimserverclient.js'; import {BimServerViewer} from 'http://localhost:8082/bimserverapi/bsviewer/viewer/bimserverviewer.js';

========== var api = new BimServerClient("http://localhost:8082"); api.init(() => { api.login("admin@mydomain","admin", () => {

        });

});

api.call("ServiceInterface", "getProjectByPoid", {poid:66084}, (project) => {
var canvas = document.getElementById("glcanvas");

var bimServerViewer = new BimServerViewer(api, settings, canvas, window.innerWidth, window.innerHeight);

this.bimServerViewer.loadModel(project);
});

but it doesn't show modal. Console output is:

bimserverclient.js:56 [default] Login successful [default] Login successful Connecting websocket WebSocket closed -> CloseEvent {isTrusted: true, wasClean: false, code: 1006, reason: "", type: "close", …}

If can find running code then next I am going build PowerBI custom visuals to show data from BIMServer.

Please help me.

Thanks and best regards,

Tariq

mtariq68 commented 3 years ago

Import statements have been changed to run on my local setup