From da0ebd8bfad9a26fd2e3d61b22efa5e43e6f172d Mon Sep 17 00:00:00 2001 From: Sergey Vartanov Date: Tue, 11 Oct 2022 22:49:14 +0400 Subject: [PATCH] Add commands for preview. --- README.md | 8 ++++++++ doc/moi/readme.moi | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/README.md b/README.md index de13390..3a1fd54 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,12 @@ Map Machine uses icons to visualize tags for nodes and areas. But unlike other r With `--buildings isometric` or `--buildings isometric-no-parts` (not set by default), buildings are drawn using isometric shapes for walls and shade in proportion to [`building:levels`](https://wiki.openstreetmap.org/wiki/Key:building:levels), [`building:min_level`](https://wiki.openstreetmap.org/wiki/Key:building:min_level), [`height`](https://wiki.openstreetmap.org/wiki/Key:height), and [`min_height`](https://wiki.openstreetmap.org/wiki/Key:min_height) values. +#### Example #### + +```shell +map-machine render -c=-26.19049,28.05605 --buildings isometric +``` + ![3D buildings](doc/buildings.svg) ### Road lanes ### @@ -112,6 +118,8 @@ Japanese maps usually use [special symbols](https://en.wikipedia.org/wiki/List_o Draw indoor features specifying level with `--level` option. Possible values are numbers (e.g. `1`, `0.5`), lists of number separated by `;` (e.g. `1;2;4;4.5`), `all`, `overground`, and `underground`. The default value is not `all`, but `overground`, so underground objects are not shown on the map if `--level` option is not specified. +#### Example #### + ```shell map-machine render -c 4.5978,-74.07507 -s 600,400 -z 19.5 --level 0 ``` diff --git a/doc/moi/readme.moi b/doc/moi/readme.moi index d7729d0..be773fe 100644 --- a/doc/moi/readme.moi +++ b/doc/moi/readme.moi @@ -51,6 +51,10 @@ Map Machine uses icons to visualize tags for nodes and areas. But unlike other With \m {--buildings isometric} or \m {--buildings isometric-no-parts} (not set by default), buildings are drawn using isometric shapes for walls and shade in proportion to \osm {building:levels}, \osm {building:min_level}, \osm {height}, and \osm {min_height} values. +\4 {Example} + +\code {shell} {map-machine render -c=-26.19049,28.05605 --buildings isometric} + \image {doc/buildings.svg} {3D buildings} \3 {Road lanes} {road-lanes} @@ -119,6 +123,8 @@ Japanese maps usually use \ref {https://en.wikipedia.org/wiki/List_of_Japanese_m Draw indoor features specifying level with \m {--level} option. Possible values are numbers (e.g. \m {1}, \m {0.5}), lists of number separated by \m {;} (e.g. \m {1;2;4;4.5}), \m {all}, \m {overground}, and \m {underground}. The default value is not \m {all}, but \m {overground}, so underground objects are not shown on the map if \m {--level} option is not specified. +\4 {Example} + \code {shell} {map-machine render -c 4.5978,-74.07507 -s 600,400 -z 19.5 --level 0} \image {doc/indoor.svg} {Indoor}