How to use the mapshaper.runCommands function in mapshaper

To help you get started, we’ve selected a few mapshaper 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 echarts-maps / echarts-china-cities-js / build / tasks / beijing.js View on Github external
return new Promise((resolve, reject) => {
    mapshaper.runCommands(command, (error) => {
      if(error){reject(error);};
      resolve();
    });
  });
}

mapshaper

A tool for editing vector datasets for mapping and GIS.

MPL-2.0
Latest version published 10 days ago

Package Health Score

80 / 100
Full package analysis

Popular mapshaper functions