Skip to content

Commit

Permalink
v0.6.64
Browse files Browse the repository at this point in the history
  • Loading branch information
mbloch committed Feb 20, 2024
1 parent 3c7c161 commit 73aa424
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v0.6.64
* Added more options for the -scalebar command, including two styles, a and b.

v0.6.63
* Add support for nested -if/-elif/-else/-endif commands.

Expand Down
16 changes: 14 additions & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# COMMAND REFERENCE

This documentation applies to version 0.6.62 of mapshaper's command line program. Run `mapshaper -v` to check your version. For an introduction to the command line tool, read [this page](https://github.com/mbloch/mapshaper/wiki/Introduction-to-the-Command-Line-Tool) first.
This documentation applies to version 0.6.64 of mapshaper's command line program. Run `mapshaper -v` to check your version. For an introduction to the command line tool, read [this page](https://github.com/mbloch/mapshaper/wiki/Introduction-to-the-Command-Line-Tool) first.

## Command line syntax

Expand Down Expand Up @@ -1136,12 +1136,24 @@ module.exports.voronoi = async function(points, bbox) {

### -scalebar

Add a scale bar to an SVG map. The command creates a data-only layer containing the scale bar's data properties. A scale bar is rendered if this layer is included as a target layer in SVG output.
Add a scale bar to an SVG map. The command creates a data-only layer containing the scale bar's data properties. A scale bar is included in the SVG output file if the scale bar layer is included as an output layer.

The length of the scale bar reflects the scale in the center of the map's rectangular frame.

`<label>` or `label=` Optional label giving the size and units of the scalebar, e.g. `"25 k.m."`. If only units are given, a length will be assigned. If the `label` property is missing, scale bar properties will be auto-generated.

`style=` Scalebar style, `a` or `b`. Style `b` has tic marks.

`bar-width=` Line width of bar.

`tic-length=` (style b) length of tic marks.

`label-position=` Position of labels relative to the bar (`top` or `bottom`).

`position=` Position of the scalebar in on the map (default is `top-left`).

`margin=` Offset in pixels from edge of map.


### -shape

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.63",
"version": "0.6.64",
"description": "A tool for editing vector datasets for mapping and GIS.",
"keywords": [
"shapefile",
Expand Down

0 comments on commit 73aa424

Please sign in to comment.