mapshaper 0.7.2 → 0.7.4
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/LICENSE +1 -1
- package/bin/mapshaper-gui +31 -7
- package/mapshaper.js +45 -42
- package/package.json +8 -7
- package/www/geopackage.js +10 -10
- package/www/index.html +32 -4
- package/www/mapshaper-gui.js +529 -83
- package/www/mapshaper.js +45 -42
- package/www/modules.js +5 -5
- package/www/page.css +157 -0
- package/www/docs/_assets/cmd-search.js +0 -213
- package/www/docs/_assets/docs.css +0 -722
- package/www/docs/_assets/docs.js +0 -75
- package/www/docs/_assets/highlight.css +0 -10
- package/www/docs/essentials/command-line.html +0 -127
- package/www/docs/essentials/command-line.html.md +0 -112
- package/www/docs/essentials/web-app.html +0 -138
- package/www/docs/essentials/web-app.html.md +0 -106
- package/www/docs/examples/basics.html +0 -275
- package/www/docs/examples/basics.html.md +0 -370
- package/www/docs/examples/data/Makefile +0 -31
- package/www/docs/examples/data/globe.msx +0 -0
- package/www/docs/examples/data/globe.svg +0 -616
- package/www/docs/examples/data/globe.txt +0 -21
- package/www/docs/examples/data/globe.zip +0 -0
- package/www/docs/examples/data/ne_50m_admin_0_countries.geojson +0 -1
- package/www/docs/examples/data/ne_50m_admin_1_states_provinces_lakes.geojson +0 -1
- package/www/docs/examples/data/us-states.msx +0 -0
- package/www/docs/examples/data/us-states.svg +0 -56
- package/www/docs/examples/data/us-states.txt +0 -6
- package/www/docs/examples/data/us-states.zip +0 -0
- package/www/docs/examples/globe.html +0 -108
- package/www/docs/examples/globe.html.md +0 -64
- package/www/docs/examples/us-states.html +0 -88
- package/www/docs/examples/us-states.html.md +0 -44
- package/www/docs/formats/csv.html +0 -127
- package/www/docs/formats/csv.html.md +0 -97
- package/www/docs/formats/dbf.html +0 -87
- package/www/docs/formats/dbf.html.md +0 -39
- package/www/docs/formats/flatgeobuf.html +0 -85
- package/www/docs/formats/flatgeobuf.html.md +0 -41
- package/www/docs/formats/geojson.html +0 -107
- package/www/docs/formats/geojson.html.md +0 -65
- package/www/docs/formats/geopackage.html +0 -87
- package/www/docs/formats/geopackage.html.md +0 -42
- package/www/docs/formats/json.html +0 -83
- package/www/docs/formats/json.html.md +0 -35
- package/www/docs/formats/kml.html +0 -82
- package/www/docs/formats/kml.html.md +0 -39
- package/www/docs/formats/overview.html +0 -191
- package/www/docs/formats/overview.html.md +0 -34
- package/www/docs/formats/shapefile.html +0 -123
- package/www/docs/formats/shapefile.html.md +0 -84
- package/www/docs/formats/snapshot.html +0 -87
- package/www/docs/formats/snapshot.html.md +0 -39
- package/www/docs/formats/svg.html +0 -99
- package/www/docs/formats/svg.html.md +0 -51
- package/www/docs/formats/topojson.html +0 -102
- package/www/docs/formats/topojson.html.md +0 -54
- package/www/docs/gallery/index.html +0 -80
- package/www/docs/gallery/index.html.md +0 -29
- package/www/docs/guides/combining-layers.html +0 -109
- package/www/docs/guides/combining-layers.html.md +0 -89
- package/www/docs/guides/expressions.html +0 -600
- package/www/docs/guides/expressions.html.md +0 -376
- package/www/docs/guides/programmatic.html +0 -117
- package/www/docs/guides/programmatic.html.md +0 -91
- package/www/docs/guides/projections.html +0 -158
- package/www/docs/guides/projections.html.md +0 -118
- package/www/docs/guides/simplification.html +0 -110
- package/www/docs/guides/simplification.html.md +0 -96
- package/www/docs/guides/topology.html +0 -90
- package/www/docs/guides/topology.html.md +0 -63
- package/www/docs/images/cal-counties.png +0 -0
- package/www/docs/images/simplification-detail.png +0 -0
- package/www/docs/images/simplification-dp.png +0 -0
- package/www/docs/images/simplification-mod2.png +0 -0
- package/www/docs/images/tiger-counties.png +0 -0
- package/www/docs/index.html +0 -101
- package/www/docs/index.html.md +0 -59
- package/www/docs/reference.html +0 -1302
- package/www/docs/reference.html.md +0 -1817
- package/www/docs/whats-new.html +0 -77
- package/www/docs/whats-new.html.md +0 -59
- package/www/llms-full.txt +0 -4053
- package/www/llms.txt +0 -55
package/www/index.html
CHANGED
|
@@ -6,11 +6,27 @@
|
|
|
6
6
|
<meta charset="UTF-8">
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
8
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
9
|
+
<script>
|
|
10
|
+
// If the page is opened with preloaded data (?files= or ?catalog= in the
|
|
11
|
+
// URL), tag <html> so CSS hides the splash-screen header links right away.
|
|
12
|
+
// Without this they flash into view for ~a second before the editor mounts
|
|
13
|
+
// and hides them. Done as the first script in <head> so the class is set
|
|
14
|
+
// before any layout. bin/mapshaper-gui adds the same class server-side
|
|
15
|
+
// when files are passed on the command line.
|
|
16
|
+
(function() {
|
|
17
|
+
try {
|
|
18
|
+
var s = location.search || '';
|
|
19
|
+
if (s.indexOf('files=') !== -1 || s.indexOf('catalog=') !== -1) {
|
|
20
|
+
document.documentElement.className += ' mapshaper-preload';
|
|
21
|
+
}
|
|
22
|
+
} catch (e) {}
|
|
23
|
+
})();
|
|
24
|
+
</script>
|
|
9
25
|
<link rel="stylesheet" href="page.css">
|
|
10
26
|
<link rel="stylesheet" href="elements.css">
|
|
11
27
|
<link rel="icon" type="image/png" href="images/icon.png">
|
|
12
28
|
</head>
|
|
13
|
-
<body>
|
|
29
|
+
<body class="mapshaper-preload">
|
|
14
30
|
<div class="hidden">
|
|
15
31
|
<svg version="1.1" id="home-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
|
|
16
32
|
y="0px" width="14px" height="19px" viewBox="0 0 14 16">
|
|
@@ -68,7 +84,7 @@
|
|
|
68
84
|
</div></div>
|
|
69
85
|
<div id="mode-buttons" class="page-header-buttons">
|
|
70
86
|
<!-- <span class="project-btn header-btn btn">Project</span><span class="separator"> -->
|
|
71
|
-
<span class="
|
|
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="console-btn header-btn btn">Console</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" tabindex="0"><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>
|
|
72
88
|
<div id="header-menu-dropdown" class="hidden" role="menu" aria-labelledby="header-menu-btn">
|
|
73
89
|
<a class="header-menu-item" href="/docs/" target="_blank" rel="noopener" role="menuitem">Docs</a>
|
|
74
90
|
<a class="header-menu-item" href="https://github.com/mbloch/mapshaper" target="_blank" rel="noopener" role="menuitem">GitHub</a>
|
|
@@ -161,7 +177,7 @@
|
|
|
161
177
|
<div style="height:11px"></div>
|
|
162
178
|
|
|
163
179
|
<div class="option-menu"><input type="text" class="text-input advanced-options" placeholder="command line options">
|
|
164
|
-
<a href="/docs/
|
|
180
|
+
<a href="/docs/reference.html#-o-output" target="mapshaper_output_docs">
|
|
165
181
|
<div class="tip-button">?<div class="tip-anchor">
|
|
166
182
|
<div class="tip">Enter options from the command line interface for
|
|
167
183
|
the -o command. Examples: bbox no-quantization
|
|
@@ -178,6 +194,18 @@ precision=0.001. Click to see all options.</div></div></div></a>
|
|
|
178
194
|
</div>
|
|
179
195
|
</div>
|
|
180
196
|
|
|
197
|
+
<div class="messages-panel main-area popup-dialog popup-align-left">
|
|
198
|
+
<div class="info-box messages-box">
|
|
199
|
+
<div class="close2-btn"></div>
|
|
200
|
+
<h3>Messages</h3>
|
|
201
|
+
<div class="messages-empty">No messages yet.</div>
|
|
202
|
+
<div class="messages-list"></div>
|
|
203
|
+
<div class="messages-footer">
|
|
204
|
+
<span class="messages-clear-btn btn dialog-btn">Clear all</span>
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
|
|
181
209
|
<div class="display-options main-area popup-dialog">
|
|
182
210
|
|
|
183
211
|
<div class="info-box add-basemap-menu">
|
|
@@ -308,7 +336,7 @@ a smoother appearance.</div></div></div></div>
|
|
|
308
336
|
</div>
|
|
309
337
|
</div>
|
|
310
338
|
<div style="margin-top: 10px"><input type="text" class="text-input advanced-options" placeholder="import options">
|
|
311
|
-
<a href="/docs/
|
|
339
|
+
<a href="/docs/reference.html#-i-input" target="mapshaper_import_docs">
|
|
312
340
|
<div class="tip-button">?<div class="tip-anchor">
|
|
313
341
|
<div class="tip">Enter options from the command line
|
|
314
342
|
interface. Examples: <span id="import-option-examples">snap no-topology
|