mapshaper 0.7.60 → 0.7.62
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 +2438 -129
- package/package.json +2 -1
- package/www/index.html +12 -6
- package/www/mapshaper-gui.js +7054 -1418
- package/www/mapshaper.js +2438 -129
- package/www/page.css +917 -221
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mapshaper",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.62",
|
|
4
4
|
"description": "A tool for editing geospatial data for mapping and GIS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shapefile",
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"fflate": "0.8.2",
|
|
62
62
|
"flatbush": "^4.6.0",
|
|
63
63
|
"flatgeobuf": "^4.3.4",
|
|
64
|
+
"fontkit": "^2.0.4",
|
|
64
65
|
"geographiclib-geodesic": "^2.2.0",
|
|
65
66
|
"geotiff": "^3.0.5",
|
|
66
67
|
"geotiff-geokeys-to-proj4": "^2024.4.13",
|
package/www/index.html
CHANGED
|
@@ -47,10 +47,16 @@
|
|
|
47
47
|
</g>
|
|
48
48
|
</svg>
|
|
49
49
|
|
|
50
|
-
<svg id="text-tool-icon" xmlns="http://www.w3.org/2000/svg" width="15" height="22" viewBox="0
|
|
50
|
+
<svg id="text-tool-icon" xmlns="http://www.w3.org/2000/svg" width="15" height="22" viewBox="0 2.8 15 22">
|
|
51
51
|
<path d="M13.4125,6.1758c-.0735,0-.1704.0087-.3023.0225-.35.0418-1.1581.0841-1.6018.0841H3.4416c-.4199,0-1.2035-.0418-1.5848-.0845-.1272-.0133-.2242-.022-.2977-.022-.5733,0-.5733.5104-.5733.678v3.8421h.9614c.8167,0,1.1245-.4428,1.2361-.7083.43-1.0372.9151-1.2196,1.775-1.2196h.6348v9.7486c0,.3918-.0528.4281-.463.7111l-.0919.0634c-.4874.3427-.6362.5765-.6362,1.0014v1.1346h6.1463v-1.1346c0-.4222-.1617-.6753-.6992-1.0441-.435-.3023-.4708-.3266-.4708-.7318v-9.7486h.6353c.8439,0,1.3253.1833,1.7754,1.2205.1851.4428.6307.7074,1.1925.7074h1.0042v-3.8421c0-.1677,0-.678-.5733-.678Z"/>
|
|
52
52
|
</svg>
|
|
53
53
|
|
|
54
|
+
<!-- a "T" over a curve: the path-aligned label tool. -->
|
|
55
|
+
<svg id="curved-text-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="-1.5 -2.325 27 27">
|
|
56
|
+
<path d="M6.5,2 H17.5 V4.6 H13.4 V12 H10.6 V4.6 H6.5 Z"/>
|
|
57
|
+
<path d="M2,20.4 C7,14.6 17,14.6 22,20.4 L22,22.6 C17,17.2 7,17.2 2,22.6 Z"/>
|
|
58
|
+
</svg>
|
|
59
|
+
|
|
54
60
|
<!-- adjusted height -->
|
|
55
61
|
<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>
|
|
56
62
|
|
|
@@ -72,7 +78,7 @@
|
|
|
72
78
|
<div class="page-header">
|
|
73
79
|
<div class="mapshaper-logo">map<span class="logo-highlight">shaper</span></div>
|
|
74
80
|
|
|
75
|
-
<div class="layer-control-btn"><span class="active-layer-label btn" role="button"
|
|
81
|
+
<div class="layer-control-btn"><span class="active-layer-label btn" role="button" aria-label="Open layers panel"></span></div>
|
|
76
82
|
|
|
77
83
|
<div class="simplify-control-wrapper"><div class="simplify-control"><div class="header-btn btn simplify-settings-btn">Settings</div>
|
|
78
84
|
<div class="slider">
|
|
@@ -84,7 +90,7 @@
|
|
|
84
90
|
</div></div>
|
|
85
91
|
<div id="mode-buttons" class="page-header-buttons">
|
|
86
92
|
<!-- <span class="project-btn header-btn btn">Project</span><span class="separator"> -->
|
|
87
|
-
<span class="messages-btn header-btn btn" role="button" aria-label="Messages" aria-haspopup="true" aria-expanded="false" title="Messages"><svg viewBox="0 0 16 16" aria-hidden="true" width="16" height="14"><path d="M2 3 h12 a1 1 0 0 1 1 1 v7 a1 1 0 0 1 -1 1 H8 l-5 4 v-4 H2 a1 1 0 0 1 -1 -1 V4 a1 1 0 0 1 1 -1 z"/></svg><span class="messages-badge hidden" aria-hidden="true">0</span></span><span class="display-btn header-btn btn">Display</span><span class="separator"></span><span class="history-btn header-btn btn" role="button" aria-haspopup="true" aria-expanded="false"
|
|
93
|
+
<span class="messages-btn header-btn btn" role="button" aria-label="Messages" aria-haspopup="true" aria-expanded="false" title="Messages"><svg viewBox="0 0 16 16" aria-hidden="true" width="16" height="14"><path d="M2 3 h12 a1 1 0 0 1 1 1 v7 a1 1 0 0 1 -1 1 H8 l-5 4 v-4 H2 a1 1 0 0 1 -1 -1 V4 a1 1 0 0 1 1 -1 z"/></svg><span class="messages-badge hidden" aria-hidden="true">0</span></span><span class="display-btn header-btn btn">Display</span><span class="separator"></span><span class="history-btn header-btn btn" role="button" aria-haspopup="true" aria-expanded="false">History</span><span class="separator"></span><span class="simplify-btn header-btn btn">Simplify</span><span class="separator"></span><span class="export-btn header-btn btn">Export</span><span class="separator"></span><span id="header-menu-btn" class="header-btn btn" role="button" aria-label="More links" aria-haspopup="true" aria-expanded="false"><svg viewBox="0 0 16 16" aria-hidden="true" width="16" height="14"><rect x="1" y="3" width="14" height="2"/><rect x="1" y="7" width="14" height="2"/><rect x="1" y="11" width="14" height="2"/></svg></span>
|
|
88
94
|
<div id="header-menu-dropdown" class="hidden" role="menu" aria-labelledby="header-menu-btn">
|
|
89
95
|
<a class="header-menu-item" href="/docs/" target="_blank" rel="noopener" role="menuitem">Docs</a>
|
|
90
96
|
<a class="header-menu-item" href="https://github.com/mbloch/mapshaper" target="_blank" rel="noopener" role="menuitem">GitHub</a>
|
|
@@ -354,7 +360,7 @@ encoding=big5</span>. Click to see all options.</div></div></div>
|
|
|
354
360
|
<div class="info-box-scrolled">
|
|
355
361
|
<div class="layer-menu">
|
|
356
362
|
<div class="layer-add-links">
|
|
357
|
-
<span id="add-file-btn" class="layer-menu-link">Add files</span><span class="layer-menu-link-separator"> · </span><span
|
|
363
|
+
<span id="add-file-btn" class="layer-menu-link">Add files</span><span class="layer-menu-link-separator"> · </span><span class="new-layer-label">Draw: </span><span class="new-layer-links"></span>
|
|
358
364
|
</div>
|
|
359
365
|
<div class="layer-item">
|
|
360
366
|
<h3>Layers</h3>
|
|
@@ -376,8 +382,8 @@ encoding=big5</span>. Click to see all options.</div></div></div>
|
|
|
376
382
|
</div>
|
|
377
383
|
<div class="sidebar-resize-handle" role="separator" aria-orientation="vertical" aria-label="Resize sidebar"></div>
|
|
378
384
|
<div class="sidebar-tabs">
|
|
379
|
-
<div class="sidebar-tab layer-tab" role="button"
|
|
380
|
-
<div class="sidebar-tab console-tab console-btn" role="button"
|
|
385
|
+
<div class="sidebar-tab layer-tab" role="button" aria-label="Toggle layers panel" aria-expanded="false">Layers</div>
|
|
386
|
+
<div class="sidebar-tab console-tab console-btn" role="button" aria-label="Toggle console" aria-expanded="false">Console</div>
|
|
381
387
|
</div>
|
|
382
388
|
<div class="mshp-main-map main-area map-area">
|
|
383
389
|
<div class="intersection-display">
|