mapshaper 0.7.6 → 0.7.8

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/www/page.css CHANGED
@@ -172,12 +172,20 @@ body.map-view {
172
172
  display: none;
173
173
  }
174
174
 
175
+ /* On narrow screens, splash links collide with the logo; keep the header clean
176
+ until data is loaded and the editor controls take over. */
177
+ @media (max-width: 500px) {
178
+ #splash-buttons {
179
+ display: none;
180
+ }
181
+ }
182
+
175
183
  .page-header-buttons {
176
184
  z-index: 20;
177
185
  position: absolute;
178
186
  top: 0px;
179
187
  right: 0px;
180
- margin: 0 3px 3px 0;
188
+ margin: 0 2px 3px 0;
181
189
  }
182
190
 
183
191
  .btn.header-btn {
@@ -218,7 +226,6 @@ body.map-view {
218
226
 
219
227
  #header-menu-btn {
220
228
  cursor: pointer;
221
- padding: 8px 7px 4px 7px;
222
229
  user-select: none;
223
230
  /* All header buttons are 29px tall, so top-align the hamburger to keep its
224
231
  row baseline-neutral. Without this, the SVG-only button (no text) makes
@@ -843,6 +850,84 @@ body.simplify .layer-control-btn {
843
850
  display: none;
844
851
  }
845
852
 
853
+ /* On small screens, move the layer menu trigger out of the header center and
854
+ render it as an icon-only floating map button. */
855
+ @media (max-width: 700px) {
856
+ .info-box {
857
+ margin-top: 8px;
858
+ }
859
+
860
+ div.nav-buttons {
861
+ top: 2px;
862
+ }
863
+
864
+ .btn.header-btn {
865
+ padding-left: 5px;
866
+ padding-right: 5px;
867
+ }
868
+
869
+ .layer-control-btn {
870
+ width: auto;
871
+ left: 9px;
872
+ top: 38px; /* below the 30px header */
873
+ text-align: left;
874
+ }
875
+
876
+ .layer-control-btn > .btn.header-btn {
877
+ margin-right: 0;
878
+ width: 30px;
879
+ height: 30px;
880
+ box-sizing: content-box;
881
+ padding: 0;
882
+ border-radius: 4px;
883
+ border: 2px solid rgba(255, 255, 255, 0.45);
884
+ display: inline-flex;
885
+ align-items: center;
886
+ justify-content: center;
887
+ }
888
+
889
+ /* The clickable header button element itself has class "layer-name", so
890
+ hide text on the button directly (not a child selector). */
891
+ .layer-control-btn > .btn.header-btn.layer-name {
892
+ color: transparent;
893
+ font-size: 0;
894
+ line-height: 0;
895
+ text-indent: -9999px;
896
+ overflow: hidden;
897
+ }
898
+
899
+ /* Mobile layer-button icon */
900
+ .layer-control-btn > .btn.header-btn::before {
901
+ content: "";
902
+ display: block;
903
+ }
904
+
905
+ /* Two diagonally offset squares */
906
+ .layer-control-btn.icon-duo > .btn.header-btn::before {
907
+ width: 13px;
908
+ height: 13px;
909
+ margin: 2px 0 0 2px;
910
+ border: 1px solid rgba(255, 255, 255, 0.95);
911
+ border-radius: 1px;
912
+ box-shadow: -4px -4px 0 -1px rgba(255, 255, 255, 0.72);
913
+ }
914
+
915
+ .mshp-main-map .basemap-overlay-buttons {
916
+ top: 10px; /* map-relative offset to align with page-level layer button */
917
+ right: 33px;
918
+ padding: 0;
919
+ background: transparent;
920
+ border-radius: 0;
921
+ }
922
+
923
+ .mshp-main-map .basemap-overlay-buttons .basemap-style-btn.basemap-overlay-btn {
924
+ width: 30px !important;
925
+ height: 30px !important;
926
+ margin: 0 0 0 4px !important;
927
+ border-radius: 4px !important;
928
+ }
929
+ }
930
+
846
931
  .layer-control .info-box {
847
932
  padding: 0;
848
933
  pointer-events: none;
@@ -1644,7 +1729,7 @@ body.pan.panning .map-layers:not(.drawing) {
1644
1729
  position: relative;
1645
1730
  cursor:pointer;
1646
1731
  /* padding: 3px 3px 5px 3px; */
1647
- padding: 4px;
1732
+ padding: 4px 5px;
1648
1733
  line-height: 1;
1649
1734
  }
1650
1735
 
package/www/sponsor.html CHANGED
@@ -36,16 +36,16 @@
36
36
 
37
37
  <h2>Recent work</h2>
38
38
  <ul class="support-list">
39
+ <li><strong>GeoParquet</strong> import and export</li>
39
40
  <li><strong>GeoPackage</strong> import and export</li>
40
41
  <li><strong>FlatGeobuf</strong> import and export</li>
41
42
  <li><strong>SVG import</strong> &mdash; for round-tripping maps originally exported from Mapshaper</li>
42
43
  <li><strong>Performance improvements</strong> for large datasets</li>
44
+ <li><a href="docs/whats-new.html">Learn more</a></li>
43
45
  </ul>
44
- <p><a href="https://github.com/mbloch/mapshaper/blob/master/CHANGELOG.md">See the full changelog &rarr;</a></p>
45
46
 
46
- <div class="feedback-cta">
47
- <strong>Want to help shape the roadmap?</strong> Take a <a href="https://tally.so/r/44Njok">one-minute survey</a> and tell me what you'd like to see improved.
48
- </div>
47
+ <h2>Want to help shape the roadmap?</h2>
48
+ <p>Take a <a href="https://tally.so/r/44Njok">one-minute survey</a> and tell me what you'd like to see improved.
49
49
 
50
50
  <p class="signature">&mdash; Matthew Bloch, maintainer</p>
51
51