How to use @esri/solution-storymap - 1 common examples

To help you get started, we’ve selected a few @esri/solution-storymap 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 Esri / solution.js / packages / deployer / src / deploySolutionItems.ts View on Github external
Promise.all(awaitDependencies).then(() => {
      // Find the conversion handler for this item type
      const templateType = template.type;
      let itemHandler = moduleMap[templateType];
      if (!itemHandler) {
        console.warn(
          "Unimplemented item type (package level) " +
            template.type +
            " for " +
            template.itemId
        );
        resolve("");
      } else {
        // Handle original Story Maps with next-gen Story Maps
        if (templateType === "Web Mapping Application") {
          if (storyMap.isAStoryMap(template) && template.data) {
            itemHandler = storyMap;
          }
        }

        // Delegate the creation of the template to the handler
        itemHandler
          .createItemFromTemplate(
            template,
            resourceFilePaths,
            storageAuthentication,
            templateDictionary,
            destinationAuthentication,
            progressTickCallback
          )
          .then(
            newItemId => resolve(newItemId),

@esri/solution-storymap

Manages the creation and deployment of Story Map item types for @esri/solution.js.

Apache-2.0
Latest version published 7 days ago

Package Health Score

82 / 100
Full package analysis

Popular @esri/solution-storymap functions