mapshaper 0.7.5 → 0.7.7
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 +548 -50
- package/package.json +1 -1
- package/www/index.html +7 -11
- package/www/mapshaper-gui.js +2 -1
- package/www/mapshaper.js +548 -50
- package/www/page.css +88 -3
package/package.json
CHANGED
package/www/index.html
CHANGED
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
|
-
<title>
|
|
5
|
-
<meta name="Description" content="A tool for
|
|
4
|
+
<title>Mapshaper</title>
|
|
5
|
+
<meta name="Description" content="A topology-aware tool for editing and converting geospatial vector data. Works with Shapefile, GeoJSON, TopoJSON, GeoPackage, FlatGeobuf and KML — in the browser or on the command line.">
|
|
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
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
10
|
(function() {
|
|
17
11
|
try {
|
|
18
12
|
var s = location.search || '';
|
|
19
|
-
if (
|
|
13
|
+
if (!window.location.hostname.endsWith("mapshaper.org") ||
|
|
14
|
+
s.indexOf('files=') !== -1 || s.indexOf('catalog=') !== -1) {
|
|
15
|
+
// hide spash-screen header links
|
|
20
16
|
document.documentElement.className += ' mapshaper-preload';
|
|
21
17
|
}
|
|
22
18
|
} catch (e) {}
|
|
@@ -26,7 +22,7 @@
|
|
|
26
22
|
<link rel="stylesheet" href="elements.css">
|
|
27
23
|
<link rel="icon" type="image/png" href="images/icon.png">
|
|
28
24
|
</head>
|
|
29
|
-
<body
|
|
25
|
+
<body>
|
|
30
26
|
<div class="hidden">
|
|
31
27
|
<svg version="1.1" id="home-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
|
|
32
28
|
y="0px" width="14px" height="19px" viewBox="0 0 14 16">
|
|
@@ -72,7 +68,7 @@
|
|
|
72
68
|
<div class="page-header">
|
|
73
69
|
<div class="mapshaper-logo">map<span class="logo-highlight">shaper</span></div>
|
|
74
70
|
|
|
75
|
-
<div class="layer-control-btn"><span class="btn header-btn layer-name"></span></div>
|
|
71
|
+
<div class="layer-control-btn icon-duo"><span class="btn header-btn layer-name"></span></div>
|
|
76
72
|
|
|
77
73
|
<div class="simplify-control-wrapper"><div class="simplify-control"><div class="header-btn btn simplify-settings-btn">Settings</div>
|
|
78
74
|
<div class="slider">
|
package/www/mapshaper-gui.js
CHANGED
|
@@ -15412,7 +15412,8 @@ GUI and setting the size and crop of SVG output.</p><div><input type="text" clas
|
|
|
15412
15412
|
gui = new GuiInstance('body');
|
|
15413
15413
|
|
|
15414
15414
|
if (!importOpts.files?.length) {
|
|
15415
|
-
|
|
15415
|
+
// show header links if not preloading files
|
|
15416
|
+
document.documentElement.classList.remove('mapshaper-preload');
|
|
15416
15417
|
}
|
|
15417
15418
|
|
|
15418
15419
|
new AlertControl(gui);
|