How to use the esri-loader.bootstrap 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
return new Promise((resolve, reject) => {
      // don't try to load a second time
      if (isLoaded()) {
        resolve(dojoRequire);
      }
      // wrap bootstrap in a promise
      bootstrap((err) => {
        if (err) {
          reject(err);
        } else {
          resolve(dojoRequire);
        }
      }, options);
    });
  }
github tomwayson / angular-esri-loader / src / services / esri-loader.service.ts View on Github external
return new Promise((resolve: Function, reject: Function) => {
      // don't try to load a second time
      if (isLoaded()) {
        resolve(dojoRequire);
      }
      // wrap bootstrap in a promise
      bootstrap((err: Error) => {
        if (err) {
          reject(err);
        } else {
          resolve(dojoRequire);
        }
      }, options);
    });
  }

esri-loader

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

Apache-2.0
Latest version published 1 year ago

Package Health Score

56 / 100
Full package analysis