mapshaper 0.7.15 → 0.7.17
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 +953 -86
- package/package.json +1 -1
- package/www/index.html +8 -32
- package/www/mapshaper-gui.js +2803 -577
- package/www/mapshaper.js +953 -86
- package/www/page.css +406 -18
package/package.json
CHANGED
package/www/index.html
CHANGED
|
@@ -47,6 +47,10 @@
|
|
|
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 0 15 22">
|
|
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.6348v8.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-8.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
|
+
</svg>
|
|
53
|
+
|
|
50
54
|
<!-- adjusted height -->
|
|
51
55
|
<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>
|
|
52
56
|
|
|
@@ -85,13 +89,12 @@
|
|
|
85
89
|
<a class="header-menu-item" href="/docs/" target="_blank" rel="noopener" role="menuitem">Docs</a>
|
|
86
90
|
<a class="header-menu-item" href="https://github.com/mbloch/mapshaper" target="_blank" rel="noopener" role="menuitem">GitHub</a>
|
|
87
91
|
<a class="header-menu-item" href="https://github.com/mbloch/mapshaper/issues/new" target="_blank" rel="noopener" role="menuitem">Report an issue</a>
|
|
88
|
-
<a class="header-menu-item
|
|
89
|
-
<a class="header-menu-item survey-zh-link" href="https://tally.so/r/vGx7KQ" target="_blank" rel="noopener" lang="zh-CN" style="display:none" role="menuitem">意见反馈</a>
|
|
92
|
+
<a class="header-menu-item" href="https://tally.so/r/44Njok" target="_blank" rel="noopener" role="menuitem">1-minute survey</a>
|
|
90
93
|
<a class="header-menu-item header-menu-sponsor" href="sponsor.html" target="_blank" rel="noopener" role="menuitem"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>Become a sponsor</a>
|
|
91
94
|
</div>
|
|
92
95
|
</div>
|
|
93
96
|
<div id="splash-buttons" class="page-header-buttons">
|
|
94
|
-
<a href="/docs/"><span id="wiki-btn" class="header-btn btn">Docs</span></a><span class="separator"></span><a href="https://github.com/mbloch/mapshaper"><span id="github-btn" class="header-btn btn">GitHub</span></a><span class="separator"></span><a
|
|
97
|
+
<a href="/docs/"><span id="wiki-btn" class="header-btn btn">Docs</span></a><span class="separator"></span><a href="https://github.com/mbloch/mapshaper"><span id="github-btn" class="header-btn btn">GitHub</span></a><span class="separator"></span><a href="https://tally.so/r/44Njok" target="_blank" rel="noopener"><span id="survey-en-btn" class="header-btn btn">1-minute survey</span></a><span class="separator"></span><a href="sponsor.html"><span id="sponsor-btn" class="header-btn btn"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg> Become a sponsor</span></a>
|
|
95
98
|
</div>
|
|
96
99
|
</div>
|
|
97
100
|
|
|
@@ -103,8 +106,9 @@
|
|
|
103
106
|
<label class="history-toggle-btn history-menu-item"><input type="checkbox" class="checkbox history-undo-checkbox">enable undo</label>
|
|
104
107
|
<div class="history-menu-note"></div>
|
|
105
108
|
<div class="history-clear-btn history-menu-item" role="menuitem">clear undo history</div>
|
|
106
|
-
<div class="history-menu-separator"></div>
|
|
107
109
|
<div class="history-command-log-btn history-menu-item" role="menuitem">view command history</div>
|
|
110
|
+
<div class="history-create-snapshot-btn history-menu-item" role="menuitem">create snapshot</div>
|
|
111
|
+
<div class="history-snapshot-list"></div>
|
|
108
112
|
</div>
|
|
109
113
|
</div>
|
|
110
114
|
</div>
|
|
@@ -384,34 +388,6 @@ encoding=big5</span>. Click to see all options.</div></div></div>
|
|
|
384
388
|
<div class="drop-area"></div>
|
|
385
389
|
</div>
|
|
386
390
|
|
|
387
|
-
<script>
|
|
388
|
-
(function() {
|
|
389
|
-
// Show the Chinese-language survey link for users likely located in
|
|
390
|
-
// mainland China, based on browser timezone or preferred language.
|
|
391
|
-
// No geolocation or network lookup is performed.
|
|
392
|
-
var isChina = false;
|
|
393
|
-
try {
|
|
394
|
-
// Allow previewing via ?survey=zh (or &survey=zh) in the URL.
|
|
395
|
-
if (/[?&]survey=zh\b/i.test(location.search)) isChina = true;
|
|
396
|
-
} catch (e) {}
|
|
397
|
-
try {
|
|
398
|
-
var tz = (Intl.DateTimeFormat().resolvedOptions().timeZone || '').toLowerCase();
|
|
399
|
-
var chinaZones = ['asia/shanghai', 'asia/urumqi', 'asia/chongqing', 'asia/harbin', 'asia/kashgar'];
|
|
400
|
-
if (chinaZones.indexOf(tz) !== -1) isChina = true;
|
|
401
|
-
} catch (e) {}
|
|
402
|
-
var langs = navigator.languages || [navigator.language || ''];
|
|
403
|
-
for (var i = 0; i < langs.length && !isChina; i++) {
|
|
404
|
-
if (/^zh(-Hans)?-CN\b/i.test(langs[i])) isChina = true;
|
|
405
|
-
}
|
|
406
|
-
if (isChina) {
|
|
407
|
-
// Swap every copy of the survey link (splash bar + hamburger menu)
|
|
408
|
-
var zhLinks = document.querySelectorAll('.survey-zh-link');
|
|
409
|
-
var enLinks = document.querySelectorAll('.survey-en-link');
|
|
410
|
-
for (var j = 0; j < zhLinks.length; j++) zhLinks[j].style.display = '';
|
|
411
|
-
for (var k = 0; k < enLinks.length; k++) enLinks[k].style.display = 'none';
|
|
412
|
-
}
|
|
413
|
-
})();
|
|
414
|
-
</script>
|
|
415
391
|
<script src="basemap.js"></script>
|
|
416
392
|
<script src="modules.js"></script>
|
|
417
393
|
<script src="mapshaper.js"></script>
|