mapshaper 0.6.18 → 0.6.20
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/mapshaper.js +2743 -6507
- package/package.json +4 -3
- package/www/index.html +12 -7
- package/www/mapshaper-gui.js +783 -364
- package/www/mapshaper.js +2743 -6507
- package/www/modules.js +301 -1
- package/www/page.css +96 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mapshaper",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.20",
|
|
4
4
|
"description": "A tool for editing vector datasets for mapping and GIS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shapefile",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"lint": "eslint --ext mjs src/",
|
|
29
29
|
"prepublishOnly": "npm lint; npm test; ./pre-publish",
|
|
30
30
|
"postpublish": "./release_web_ui; ./release_github_version",
|
|
31
|
-
"browserify": "browserify -r sync-request -r mproj -r buffer -r iconv-lite -r fs -r flatbush -r rw -r path -r kdbush -r @tmcw/togeojson -r @placemarkio/tokml -o www/modules.js",
|
|
31
|
+
"browserify": "browserify -r sync-request -r mproj -r buffer -r iconv-lite -r fs -r flatbush -r rw -r path -r kdbush -r @tmcw/togeojson -r @placemarkio/tokml -r 'idb-keyval' -o www/modules.js",
|
|
32
32
|
"dev": "rollup --config --watch"
|
|
33
33
|
},
|
|
34
34
|
"main": "./mapshaper.js",
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"!.DS_Store"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@msgpack/msgpack": "^2.8.0",
|
|
44
43
|
"@placemarkio/tokml": "^0.3.3",
|
|
45
44
|
"@tmcw/togeojson": "^5.6.0",
|
|
46
45
|
"@xmldom/xmldom": "^0.8.6",
|
|
@@ -56,8 +55,10 @@
|
|
|
56
55
|
"flatbush": "^3.2.1",
|
|
57
56
|
"geokdbush": "^1.1.0",
|
|
58
57
|
"iconv-lite": "^0.6.3",
|
|
58
|
+
"idb-keyval": "^6.2.0",
|
|
59
59
|
"kdbush": "^3.0.0",
|
|
60
60
|
"mproj": "0.0.35",
|
|
61
|
+
"msgpackr": "^1.8.1",
|
|
61
62
|
"opn": "^5.3.0",
|
|
62
63
|
"rw": "~1.3.3",
|
|
63
64
|
"sync-request": "5.0.0",
|
package/www/index.html
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
</g>
|
|
30
30
|
</svg>
|
|
31
31
|
|
|
32
|
+
<!-- adjusted height -->
|
|
32
33
|
<svg version="1.1" id="zoom-out-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
|
|
33
34
|
y="0px" width="14px" height="16px" viewBox="0 -1 14 10">
|
|
34
35
|
<g>
|
|
@@ -36,10 +37,14 @@
|
|
|
36
37
|
</g>
|
|
37
38
|
</svg>
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<svg id="pointer-icon" version="1.1" xmlns="http://www.w3.org/2000/svg" width="15" height="20" viewBox="0 0 15 20"><rect x="7.4126" y="11.0354" width="3.9102" height="7.9841" transform="translate(-5.8889 6.0377) rotate(-27.5536)" fill="#30d4ef"/><polygon points="2.57 2.086 2.718 16.056 13.944 10.198 2.57 2.086" fill="#30d4ef"/></svg>
|
|
40
|
+
<!-- adjusted height -->
|
|
41
|
+
<svg id="pointer-icon" version="1.1" xmlns="http://www.w3.org/2000/svg" width="15" height="22" viewBox="0 0 15 20"><rect x="7.4126" y="11.0354" width="3.9102" height="7.9841" transform="translate(-5.8889 6.0377) rotate(-27.5536)" fill="#30d4ef"/><polygon points="2.57 2.086 2.718 16.056 13.944 10.198 2.57 2.086" fill="#30d4ef"/></svg>
|
|
42
42
|
|
|
43
|
+
<!-- adjusted height -->
|
|
44
|
+
<svg id="ribbon-icon" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="15" height="26" viewBox="0 0 15 20">
|
|
45
|
+
<polygon points="8 14.5 13 19 13 4 3 4 3 19 8 14.5" fill="#30d4ef"/>
|
|
46
|
+
</svg>
|
|
47
|
+
|
|
43
48
|
<defs>
|
|
44
49
|
<style>
|
|
45
50
|
.cls-1 {
|
|
@@ -97,6 +102,8 @@
|
|
|
97
102
|
<img class="pin-btn pinned" src="images/eye2.png">
|
|
98
103
|
</div>
|
|
99
104
|
<div class="layer-list"></div>
|
|
105
|
+
<h3>Files</h3>
|
|
106
|
+
<div class="file-list"></div>
|
|
100
107
|
<div>
|
|
101
108
|
<div id="add-file-btn" class="dialog-btn btn">Add a file</div>
|
|
102
109
|
<!-- <div id="add-empty-btn" class="dialog-btn btn">Empty layer</div> -->
|
|
@@ -235,9 +242,8 @@ a smoother appearance.</div></div></div></div>
|
|
|
235
242
|
|
|
236
243
|
<div id="import-drop" class="drop-area">
|
|
237
244
|
<h4>Drop or paste files here or <span class="inline-btn btn" id="file-selection-btn"><span class="label-text">select</span></span> from a folder</h4>
|
|
238
|
-
<div class="subtitle">Shapefile, GeoJSON, TopoJSON,
|
|
239
|
-
<div class="subtitle">Files can be
|
|
240
|
-
|
|
245
|
+
<div class="subtitle">Shapefile, GeoJSON, TopoJSON, KML and CSV files are supported</div>
|
|
246
|
+
<div class="subtitle">Files can be gzipped or in a zip archive</div>
|
|
241
247
|
</div>
|
|
242
248
|
<div class="spacer"></div>
|
|
243
249
|
<div id="import-quick-drop" class="drop-area">
|
|
@@ -317,6 +323,5 @@ interface. Examples: "no-topology"
|
|
|
317
323
|
<script src="mapshaper.js" type="text/javascript"></script>
|
|
318
324
|
<script src="manifest.js" type="text/javascript"></script>
|
|
319
325
|
<script src="mapshaper-gui.js" type="text/javascript"></script>
|
|
320
|
-
|
|
321
326
|
</body>
|
|
322
327
|
</html>
|