How to use the @nextgis/ngw-kit function in @nextgis/ngw-kit

To help you get started, we’ve selected a few @nextgis/ngw-kit 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 nextgis / nextgisweb_frontend / packages / ngw-map / src / utils.ts View on Github external
options: NgwMapOptions
) {
  const kits: StarterKit[] = [new QmsKit()];

  if (!options.connector && options.baseUrl) {
    options.connector = new NgwConnector({
      baseUrl: options.baseUrl,
      auth: options.auth
    });
  } else if (options.connector) {
    options.baseUrl = options.connector.options.baseUrl;
  }
  const opt: NgwMapOptions = deepmerge(OPTIONS, options);
  if (opt.connector) {
    kits.push(
      new NgwKit({
        connector: opt.connector,
        auth: opt.auth,
        identification: opt.identification
      })
    );
  }
  return {
    mapAdapter,
    starterKits: kits,
    runtimeParams: options.runtimeParams
  };
}

@nextgis/ngw-kit

This library contains a plugin, a set of utilities and adapters that allow you to interact with NextGIS Web

MIT
Latest version published 12 days ago

Package Health Score

69 / 100
Full package analysis