Porównaj commity

...

34 Commity

Autor SHA1 Wiadomość Data
dependabot[bot] 4fe9a60a0c
Bump jsdom from 16.4.0 to 16.7.0 (#118)
Bumps [jsdom](https://github.com/jsdom/jsdom) from 16.4.0 to 16.7.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md)
- [Commits](https://github.com/jsdom/jsdom/compare/16.4.0...16.7.0)

---
updated-dependencies:
- dependency-name: jsdom
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-10 16:14:17 +01:00
dependabot[bot] 1ac31f62e9
Bump ansi-regex from 4.1.0 to 4.1.1 (#125)
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-10 16:13:15 +01:00
dependabot[bot] 84f29b8e8b
Bump minimatch from 3.0.4 to 3.1.2 (#126)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-10 16:12:38 +01:00
dependabot[bot] dcc2508761
Bump json-schema and jsprim (#127)
Bumps [json-schema](https://github.com/kriszyp/json-schema) and [jsprim](https://github.com/joyent/node-jsprim). These dependencies needed to be updated together.

Updates `json-schema` from 0.2.3 to 0.4.0
- [Release notes](https://github.com/kriszyp/json-schema/releases)
- [Commits](https://github.com/kriszyp/json-schema/compare/v0.2.3...v0.4.0)

Updates `jsprim` from 1.4.1 to 1.4.2
- [Release notes](https://github.com/joyent/node-jsprim/releases)
- [Changelog](https://github.com/TritonDataCenter/node-jsprim/blob/v1.4.2/CHANGES.md)
- [Commits](https://github.com/joyent/node-jsprim/compare/v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: json-schema
  dependency-type: indirect
- dependency-name: jsprim
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-10 16:12:16 +01:00
dependabot[bot] bae6fcfc93
Bump node-fetch from 2.6.1 to 2.6.7 (#119)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-09 13:13:13 +01:00
dependabot[bot] e39cd8783b
Bump decode-uri-component from 0.2.0 to 0.2.2 (#122)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-09 13:12:49 +01:00
dependabot[bot] c093199c65
Bump json5 from 2.1.3 to 2.2.3 (#124)
Bumps [json5](https://github.com/json5/json5) from 2.1.3 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.1.3...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-09 13:12:24 +01:00
dependabot[bot] edeb0ebb2d
Bump qs from 6.5.2 to 6.5.3 (#123)
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.5.2...v6.5.3)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-09 13:12:10 +01:00
Christian Paul 76f541db46
Test on Node 14, 16 and 18 2022-04-29 20:03:20 +02:00
dependabot[bot] 2315a3515c
Bump path-parse from 1.0.6 to 1.0.7 (#109)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-31 23:28:17 +02:00
dependabot[bot] 7f0c04cb49
Bump hosted-git-info from 2.8.8 to 2.8.9 (#102)
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-14 03:59:48 +02:00
dependabot[bot] c58da4e86f
Bump ws from 7.3.1 to 7.4.6 (#103)
Bumps [ws](https://github.com/websockets/ws) from 7.3.1 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.3.1...7.4.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-14 03:59:00 +02:00
dependabot[bot] f2a694f26d
Bump glob-parent from 5.1.1 to 5.1.2 (#104)
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-14 03:58:08 +02:00
Michael Straßburger 9f0fa46f92
Merge pull request #101 from rastapasta/dependabot/npm_and_yarn/lodash-4.17.21
Bump lodash from 4.17.20 to 4.17.21
2021-05-08 15:06:18 +02:00
Michael Straßburger da9d4d05a6
Merge pull request #99 from rastapasta/dependabot/npm_and_yarn/y18n-4.0.1
Bump y18n from 4.0.0 to 4.0.1
2021-05-08 15:06:03 +02:00
dependabot[bot] 64c53f6d01
Bump lodash from 4.17.20 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-07 20:49:46 +00:00
dependabot[bot] dafe5cf4cb
Bump y18n from 4.0.0 to 4.0.1
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-30 10:02:56 +00:00
dependabot[bot] 9be22c8a1a
Bump node-notifier from 8.0.0 to 8.0.1 (#96)
Bumps [node-notifier](https://github.com/mikaelbr/node-notifier) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/mikaelbr/node-notifier/releases)
- [Changelog](https://github.com/mikaelbr/node-notifier/blob/v8.0.1/CHANGELOG.md)
- [Commits](https://github.com/mikaelbr/node-notifier/compare/v8.0.0...v8.0.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-22 14:08:22 +01:00
Christian Paul b70e64f378 Upgrade dependencies 2020-09-09 00:40:47 +02:00
Christian Paul 247122f684
Remove bluebird (#94) 2020-09-09 00:36:37 +02:00
Christian Paul a7e7621705
Replace userhome with env-paths (#91)
* Replace userhome with env-paths

* Download the correct package
2020-08-17 12:02:07 +02:00
Christian Paul 2d88b6f16d Merge branch 'master' of github.com:rastapasta/mapscii 2020-08-12 02:08:04 +02:00
Christian Paul 0ce9b27a04 Upgrade dependencies 2020-08-12 02:07:55 +02:00
Christian Paul df269c10d9
Fix TileSource test to be a test (#90) 2020-08-12 02:06:01 +02:00
Christian Paul 26f8ebe1f5 Add lennonhill to the AUTHORS file 2020-08-12 01:59:51 +02:00
Christian Paul 5c8ded81dc Change the unit of width and length options to full characters 2020-08-12 01:58:25 +02:00
Christian Paul 9eb2e5ef25 Regenerate package-lock.json 2020-08-12 01:50:26 +02:00
Christian Paul 9bee8cca19 Fix the initial center to be the c-base 2020-08-12 01:46:20 +02:00
Thorkil Værge 34d628d1d1
Add preliminary support for parsing of command line options (#86)
* Add preliminary support for parsing of command line options

* Remove redundant options for width and height

* Add parser for command line arguments. Type validation outstanding.

* Update TODO list

* Use config for argv's default values, simplify argument management

Co-authored-by: LH <@>
2020-08-12 01:44:39 +02:00
dependabot[bot] 219161e13e
Bump lodash from 4.17.15 to 4.17.19 (#88)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-16 13:53:43 +02:00
Christian Paul 393f867c84
Raise the minimum NodeJS version to 10 (#84) 2020-05-28 12:18:00 +02:00
Christian Paul 8475501605 Upgrade dev dependencies: jest and eslint 2020-05-21 14:47:59 +02:00
dependabot[bot] 739176e817
Bump acorn from 6.4.0 to 6.4.1 (#82)
Bumps [acorn](https://github.com/acornjs/acorn) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-16 01:34:48 +01:00
Michael Straßburger 7103ecc0b7 re-adding jest, making the CI happy again 2020-02-19 10:23:55 +01:00
11 zmienionych plików z 4674 dodań i 355 usunięć

Wyświetl plik

@ -1,8 +1,8 @@
language: node_js
node_js:
- "8"
- "10"
- "12"
- "14"
- "16"
- "18"
script:
- npm run-script lint

Wyświetl plik

@ -5,3 +5,4 @@ Christian Paul (https://chrpaul.de)
Jannis R <mail@jannisr.de>
Alexander Zhukov (https://github.com/ZhukovAlexander)
Quincy Morgan (https://github.com/quincylvania)
lennonhill (https://github.com/lennonhill)

Wyświetl plik

@ -36,7 +36,7 @@ npx mapscii
### With npm
If you haven't already got Node.js >= version 6.14, then [go get it](http://nodejs.org/).
If you haven't already got Node.js >= version 10, then [go get it](http://nodejs.org/).
```
npm install -g mapscii
@ -91,19 +91,18 @@ If your terminal supports mouse events you can drag the map and use your scroll
* [`simplify-js`](https://github.com/mourner/simplify-js) for polyline simplifications
#### Handling the flow
* [`bluebird`](https://github.com/petkaantonov/bluebird) for all the asynchronous [Promise](https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Promise) magic
* [`node-fetch`](https://github.com/bitinn/node-fetch) for HTTP requests
* [`userhome`](https://github.com/shama/userhome) to determine where to persist downloaded tiles
* [`env-paths`](https://github.com/sindresorhus/env-paths) to determine where to persist downloaded tiles
### TODOs
* MapSCII
* [ ] GeoJSON support via [geojson-vt](https://github.com/mapbox/geojson-vt)
* [ ] CLI support
* [ ] startup parameters
* [ ] TileSource
* [ ] Style
* [ ] center position
* [ ] zoom
* [-] startup parameters
* [X] TileSource
* [X] Style
* [X] center position
* [X] zoom
* [ ] demo mode?
* [ ] mouse control

72
main.js
Wyświetl plik

@ -8,9 +8,79 @@
TODO: params parsing and so on
#*/
'use strict';
const config = require('./src/config');
const Mapscii = require('./src/Mapscii');
const argv = require('yargs')
.option('latitude', {
alias: 'lat',
description: 'Latitude of initial centre',
default: config.initialLat,
type: 'number',
})
.option('longitude', {
alias: 'lon',
description: 'Longitude of initial centre',
default: config.initialLon,
type: 'number',
})
.option('zoom', {
alias: 'z',
description: 'Initial zoom',
default: config.initialZoom,
type: 'number',
})
.option('width', {
alias: 'w',
description: 'Fixed width of rendering',
type: 'number',
})
.option('height', {
alias: 'h',
description: 'Fixed height of rendering',
type: 'number',
})
.option('braille', {
alias: 'b',
description: 'Activate braille rendering',
default: config.useBraille,
type: 'boolean',
})
.option('headless', {
alias: 'H',
description: 'Activate headless mode',
default: config.headless,
type: 'boolean',
})
.option('tile_source', {
alias: 'tileSource',
description: 'URL or path to osm2vectortiles source',
default: config.source,
type: 'string',
})
.option('style_file', {
alias: 'style',
description: 'path to json style file',
default: config.styleFile,
type: 'string',
})
.strict()
.argv;
const mapscii = new Mapscii();
const options = {
initialLat: argv.latitude,
initialLon: argv.longitude,
initialZoom: argv.zoom,
size: {
width: argv.width,
height: argv.height
},
useBraille: argv.braille,
headless: argv.headless,
source: argv.tile_source,
styleFile: argv.style_file,
};
const mapscii = new Mapscii(options);
mapscii.init().catch((err) => {
console.error('Failed to start MapSCII.');
console.error(err);

4834
package-lock.json wygenerowano

Plik diff jest za duży Load Diff

Wyświetl plik

@ -5,7 +5,8 @@
"main": "main.js",
"scripts": {
"lint": "eslint src",
"start": "node main"
"start": "node main",
"test": "jest"
},
"repository": {
"type": "git",
@ -15,7 +16,7 @@
"mapscii": "./bin/mapscii.sh"
},
"engines": {
"node": ">=8"
"node": ">=10"
},
"keywords": [
"map",
@ -30,20 +31,22 @@
"license": "MIT",
"dependencies": {
"@mapbox/vector-tile": "^1.3.1",
"bluebird": "^3.7.2",
"bresenham": "0.0.4",
"earcut": "^2.2.2",
"env-paths": "^2.2.0",
"keypress": "^0.2.1",
"node-fetch": "^2.6.0",
"node-fetch": "^2.6.1",
"pbf": "^3.2.1",
"rbush": "^3.0.1",
"simplify-js": "^1.2.4",
"string-width": "^4.2.0",
"term-mouse": "^0.2.2",
"userhome": "^1.0.0",
"x256": "0.0.2"
"x256": "0.0.2",
"yargs": "^15.4.1"
},
"devDependencies": {
"eslint": "^6.8.0"
"eslint": "^7.8.1",
"eslint-plugin-jest": "^24.0.0",
"jest": "^26.4.2"
}
}

Wyświetl plik

@ -31,17 +31,13 @@ class Mapscii {
this.renderer = null;
this.zoom = 0;
// sf lat: 37.787946, lon: -122.407522
// iceland lat: 64.124229, lon: -21.811552
// rgbg
// lat: 49.019493, lon: 12.098341
this.center = {
lat: 52.51298,
lon: 13.42012,
};
this.minZoom = null;
config = Object.assign(config, options);
this.center = {
lat: config.initialLat,
lon: config.initialLon
};
}
async init() {
@ -97,13 +93,8 @@ class Mapscii {
}
_resizeRenderer() {
if (config.size) {
this.width = config.size.width;
this.height = config.size.height;
} else {
this.width = config.output.columns >> 1 << 2;
this.height = config.output.rows * 4 - 4;
}
this.width = config.size && config.size.width ? config.size.width * 2 : config.output.columns >> 1 << 2;
this.height = config.size && config.size.height ? config.size.height * 4 : config.output.rows * 4 - 4;
this.minZoom = 4-Math.log(4096/this.width)/Math.LN2;

Wyświetl plik

@ -5,7 +5,6 @@
The Console Vector Tile renderer - bäm!
*/
'use strict';
const Promise = require('bluebird');
const x256 = require('x256');
const simplify = require('simplify-js');
@ -30,7 +29,7 @@ class Renderer {
this.canvas = new Canvas(width, height);
}
draw(center, zoom) {
async draw(center, zoom) {
if (this.isDrawing) return Promise.reject();
this.isDrawing = true;
@ -49,21 +48,20 @@ class Renderer {
this.canvas.clear();
return Promise.resolve(this._visibleTiles(center, zoom)).map((tile) => {
return this._getTile(tile);
}).map((tile) => {
return this._getTileFeatures(tile, zoom);
}).then((tiles) => {
this._renderTiles(tiles);
}).then(() => {
try {
let tiles = this._visibleTiles(center, zoom);
await Promise.all(tiles.map(async(tile) => {
await this._getTile(tile);
this._getTileFeatures(tile, zoom);
}));
await this._renderTiles(tiles);
return this._getFrame();
}).catch((e) => {
return console.log(e);
}).finally((frame) => {
} catch(e) {
console.error(e);
} finally {
this.isDrawing = false;
this.lastDrawAt = Date.now();
return frame;
});
}
}
_visibleTiles(center, zoom) {
@ -104,13 +102,9 @@ class Renderer {
return tiles;
}
_getTile(tile) {
return this.tileSource
.getTile(tile.xyz.z, tile.xyz.x, tile.xyz.y)
.then((data) => {
tile.data = data;
return tile;
});
async _getTile(tile) {
tile.data = await this.tileSource.getTile(tile.xyz.z, tile.xyz.x, tile.xyz.y);
return tile;
}
_getTileFeatures(tile, zoom) {
@ -140,6 +134,7 @@ class Renderer {
_renderTiles(tiles) {
const labels = [];
if (tiles.length === 0) return;
const drawOrder = this._generateDrawOrder(tiles[0].xyz.z);
for (const layerId of drawOrder) {

Wyświetl plik

@ -7,9 +7,11 @@
* local MBTiles and VectorTiles
*/
'use strict';
const userhome = require('userhome');
const fetch = require('node-fetch');
const fs = require('fs');
const path = require('path');
const fetch = require('node-fetch');
const envPaths = require('env-paths');
const paths = envPaths('mapscii');
const Tile = require('./Tile');
const config = require('./config');
@ -141,8 +143,7 @@ class TileSource {
_initPersistence() {
try {
this._createFolder(userhome('.mapscii'));
this._createFolder(userhome('.mapscii', 'cache'));
this._createFolder(paths.cache);
} catch (error) {
config.persistDownloadedTiles = false;
}
@ -150,14 +151,14 @@ class TileSource {
_persistTile(z, x, y, buffer) {
const zoom = z.toString();
this._createFolder(userhome('.mapscii', 'cache', zoom));
const filePath = userhome('.mapscii', 'cache', zoom, `${x}-${y}.pbf`);
this._createFolder(path.join(paths.cache, zoom));
const filePath = path.join(paths.cache, zoom, `${x}-${y}.pbf`);
return fs.writeFile(filePath, buffer, () => null);
}
_getPersited(z, x, y) {
try {
return fs.readFileSync(userhome('.mapscii', 'cache', z.toString(), `${x}-${y}.pbf`));
return fs.readFileSync(path.join(paths.cache, z.toString(), `${x}-${y}.pbf`));
} catch (error) {
return false;
}

Wyświetl plik

@ -6,7 +6,7 @@ describe('TileSource', () => {
test('sets the mode to 3', async () => {
const tileSource = new TileSource();
await tileSource.init('http://mapscii.me/');
tileSource.mode = 3;
expect(tileSource.mode).toBe(3);
});
});
});

Wyświetl plik

@ -13,6 +13,13 @@ module.exports = {
maxZoom: 18,
zoomStep: 0.2,
// sf lat: 37.787946, lon: -122.407522
// iceland lat: 64.124229, lon: -21.811552
// rgbg
// lat: 49.019493, lon: 12.098341
initialLat: 52.51298,
initialLon: 13.42012,
simplifyPolylines: false,
useBraille: true,