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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mapshaper",
3
- "version": "0.7.5",
3
+ "version": "0.7.7",
4
4
  "description": "A tool for editing vector datasets for mapping and GIS.",
5
5
  "keywords": [
6
6
  "shapefile",
package/www/index.html CHANGED
@@ -1,22 +1,18 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
3
  <head>
4
- <title>mapshaper</title>
5
- <meta name="Description" content="A tool for topologically aware shape simplification. Reads and writes Shapefile, GeoJSON, TopoJSON, KML, GeoPackage and FlatGeobuf formats.">
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 (s.indexOf('files=') !== -1 || s.indexOf('catalog=') !== -1) {
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 class="mapshaper-preload">
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">
@@ -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
- El('body').removeClass('mapshaper-preload');
15415
+ // show header links if not preloading files
15416
+ document.documentElement.classList.remove('mapshaper-preload');
15416
15417
  }
15417
15418
 
15418
15419
  new AlertControl(gui);