Guide3DMenuService_V1.3.1.min.js and above requires
window.fetch()
support.
As an alternative you may use the Guide3DMenuService_V1.3.1.ie.min.js for IE11 support (which includes in addition the polyfill fetch.min.js).
Download the Declaration Files Guide3DMenuService_V1.3.1.d.ts if you develop in Typescript to add auto-completion / IntelliSense to your IDE as follows:
/// <reference path="./yourpath/Guide3DMenuService_V1.3.1.d.ts"/>
Guide3DMenuService.get<Start|End|Mode>ElementsBySet(sSetId: string = <root>, { "force-display": boolean = false, "filter": string[] = [] });
Guide3DMenuService.get<Start|End|Mode>Sets(sSetId: string = <root>);
Guide3DMenuService.get<Start|End|Mode>ItemById(sItemId: string);
Guide3DMenuService.get<Start|End|Mode>ItemsBy<Point|Mode>(sPointId|sModeId: string, sSetId: string = <root>, bForceDisplay: boolean = false);
Guide3DMenuService.get<Start|End|Mode>ItemsByTerm(sTerm: string, sSetId: string = <root>);
<script src="https://services.guide3d.com/menu/js/Guide3DMenuService_V1.3.1.ie.min.js"></script>
var oGuide3DMenuServiceOptions = {
"debug": false,
"project": 100118,
"language": "en",
"callback": function (oEvent) {
switch (oEvent.id) {
case Guide3DMenuService.EVENT_LOADED:
console.log(oGuide3DMenuService.getEndElementsBySet());
break;
}
},
"icons-base-url": "https://app.guide3d.com/100118/engine/res/icons/",
"preload-url": "./100118/json/Guide3D-MenuPreload-100118.json" // mandatory
};
oGuide3DMenuService = new Guide3DMenuService(oGuide3DMenuServiceOptions);