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

To help you get started, we’ve selected a few @nextgis/qms-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
export function prepareWebMapOptions(
  mapAdapter: MapAdapter,
  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

@nextgis/qms-kit

Build webmap with QuickMapServices

MIT
Latest version published 20 days ago

Package Health Score

69 / 100
Full package analysis

Popular @nextgis/qms-kit functions