Skip to content

Commit

Permalink
v0.6.46
Browse files Browse the repository at this point in the history
  • Loading branch information
mbloch committed Nov 8, 2023
1 parent f2f37e3 commit 4fe2e7d
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 14 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
v0.6.46
* Added save to clipboard option to web UI export menu.
* In -each expressions, `this.geojson` setter now accepts nulls and FeatureCollectsions in addition to single Features.

v0.6.45
* Added -o hoist=<fields> option for moving GeoJSON Feature properties to the root of each Feature.
Expand Down
3 changes: 2 additions & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,8 @@ All layer types
- `this.layer_name` Name of the layer, or `""` if layer is unnamed.
- `this.properties` Data properties (also available as local variables) (read/write)
- `this.layer` Object with "name" and "data" properties
- `this.geojson` (read/write) Converts each feature to a GeoJSON Feature object.
- `this.geojson` (getter) Returns each feature as a GeoJSON Feature object.
- `this.geojson=` (setter) Update target layer with GeoJSON.

Point layers
- `this.coordinates` An array of [x, y] coordinates with one or more members, or null (read/write)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mapshaper",
"version": "0.6.45",
"version": "0.6.46",
"description": "A tool for editing vector datasets for mapping and GIS.",
"keywords": [
"shapefile",
Expand Down
2 changes: 1 addition & 1 deletion src/gui/gui-export-control.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export var ExportControl = function(gui) {
return;
}

new SimpleButton(menu.findChild('.save-btn').addClass('default-btn')).on('click', onExportClick);
new SimpleButton(menu.findChild('#export-btn').addClass('default-btn')).on('click', onExportClick);
gui.addMode('export', turnOn, turnOff, exportBtn);
gui.keyboard.onMenuSubmit(menu, onExportClick);
var savePreferenceCheckbox;
Expand Down
4 changes: 2 additions & 2 deletions src/gui/gui-popup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ export function Popup(gui, toNext, toPrev) {
var popup = showPopupAlert('', 'Add field');
var el = popup.container();
el.addClass('option-menu');
var html = `<input type="text" class="field-name text-input" placeholder="field name"><br>
<input type="text" class="field-value text-input" placeholder="value"><br>
var html = `<div><input type="text" class="field-name text-input" placeholder="field name"></div>
<div><input type="text" class="field-value text-input" placeholder="value"><div>
<div tabindex="0" class="btn dialog-btn">Apply</div> <span class="inline-checkbox"><input type="checkbox" class="all" />assign value to all records</span>`;
el.html(html);

Expand Down
9 changes: 4 additions & 5 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,24 +156,23 @@ <h4>File format</h4>
<div class="export-formats option-menu">
</div>

<div style="height:10px"></div>
<div style="height:11px"></div>

<div class="option-menu"><input type="text" class="text-input advanced-options" placeholder="command line options" />
<a href="https://github.com/mbloch/mapshaper/wiki/Command-Reference#-o-output" target="_mapshaper_output_docs">
<div class="tip-button">?<div class="tip-anchor">
<div class="tip">Enter options from the command line interface for
the -o command. Examples: bbox no-quantization
precision=0.001. Click to see all options.</div></div></div></a>
</div>


<!-- <div class="option-menu">
<input id="ofile-name" class="text-input" type="text" placeholder="output file name" />
</div> -->
<div><span id="save-preference" style="display: none;"><input type="checkbox"/>choose output directory</span></div>
<div><span id="save-to-clipboard" style="display: inline-block;"><input type="checkbox"/>save to clipboard</span></div>

<div class="save-btn btn dialog-btn">Export</div>

</div>
<div id="export-btn" class="btn dialog-btn" style="margin-top: 4px;">Export</div>

</div>
</div>
Expand Down
6 changes: 4 additions & 2 deletions www/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ body {
.export-options table {
margin: 0;
border-collapse: collapse;
border-spacing: 0;
width: 100%;
}

Expand Down Expand Up @@ -280,7 +281,7 @@ body {
.alert-title {
line-height: 1.1;
font-weight: bold;
margin-bottom: 5px;
margin-bottom: 7px;
}

div.alert-title, div.error-message {
Expand Down Expand Up @@ -467,6 +468,7 @@ body.dragover #import-options-drop-area .drop-area {
margin: 0 0 5px 0;
}


#mshp-not-supported {
display: none;
z-index: 100;
Expand Down Expand Up @@ -1134,7 +1136,7 @@ img.close-btn:hover,

.basemap-styles > div {
display: inline-block;
margin-bottom: 8px;
margin-bottom: 6px;
}

.basemap-styles > div:nth-child(even) {
Expand Down

0 comments on commit 4fe2e7d

Please sign in to comment.