How to use the esri-loader.dojoRequire function in esri-loader

To help you get started, we’ve selected a few esri-loader examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tomwayson / esri-angular-cli-example / src / app / esri-loader.service.ts View on Github external
require(moduleNames: string[], callback: Function) {
    return dojoRequire(moduleNames, callback);
  }
}
github tomwayson / angular-esri-loader / src / services / esri-loader.service.ts View on Github external
require(moduleNames: string[], callback: (...modules: any[]) => void) {
    return dojoRequire(moduleNames, callback);
  }
}
github tomwayson / angular-esri-loader / src / services / esri-loader.service.ts View on Github external
return new Promise((resolve: Function) => {
      dojoRequire(moduleNames, (...modules: any[]) => {
        resolve(modules);
      });
    });
  }
github tomwayson / esri-angular-cli-example / src / app / esri-loader.service.ts View on Github external
return new Promise((resolve) => {
      dojoRequire(moduleNames, (...modules) => {
        resolve(modules);
      });
    });
  }

esri-loader

A tiny library to help load ArcGIS API for JavaScript modules in non-Dojo applications

Apache-2.0
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis