mapshaper 0.5.85 → 0.5.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mapshaper-gui +4 -1
- package/mapshaper.js +385 -141
- package/package.json +1 -1
- package/www/mapshaper-gui.js +476 -376
- package/www/mapshaper.js +385 -141
- package/www/nacis/Makefile +22 -0
- package/www/nacis/Makefile.txt +22 -0
- package/www/nacis/images/close.png +0 -0
- package/www/nacis/images/eye.png +0 -0
- package/www/nacis/images/eye2.png +0 -0
- package/www/nacis/index.html +262 -0
- package/www/nacis/manifest.js +27 -0
- package/www/nacis/map.svg +12308 -0
- package/CHANGELOG.md +0 -1288
package/bin/mapshaper-gui
CHANGED
|
@@ -9,6 +9,7 @@ var defaultPort = 5555,
|
|
|
9
9
|
.option('-s, --direct-save', 'save files outside the browser\'s download folder')
|
|
10
10
|
.option('-f, --force-save', 'allow overwriting input files with output files')
|
|
11
11
|
.option('-a, --display-all', 'turn on visibility of all layers')
|
|
12
|
+
.option('-n, --name <name(s)>', 'rename input layer or layers')
|
|
12
13
|
.option('-t, --target <name>', 'name of layer to select initially')
|
|
13
14
|
.helpOption('-h, --help', 'show this help message')
|
|
14
15
|
.version(require('../package.json').version)
|
|
@@ -29,7 +30,8 @@ var defaultPort = 5555,
|
|
|
29
30
|
validateFiles(dataFiles);
|
|
30
31
|
|
|
31
32
|
process.on('uncaughtException', function(err) {
|
|
32
|
-
|
|
33
|
+
// added 'code' for Node.js v16
|
|
34
|
+
if (err.errno === 'EADDRINUSE' || err.code === 'EADDRINUSE') {
|
|
33
35
|
// probe for an open port, unless user has specified a non-default port
|
|
34
36
|
if (port == defaultPort && probeCount < 10) {
|
|
35
37
|
probeCount++;
|
|
@@ -207,6 +209,7 @@ function getManifestJS(files, opts) {
|
|
|
207
209
|
if (opts.directSave) o.allow_saving = true;
|
|
208
210
|
if (opts.displayAll) o.display_all = true;
|
|
209
211
|
if (opts.quickView) o.quick_view = true;
|
|
212
|
+
if (opts.name) o.name = opts.name;
|
|
210
213
|
return "mapshaper.manifest = " + JSON.stringify(o) + ";\n";
|
|
211
214
|
}
|
|
212
215
|
|