Commit graph

49 commits

Author SHA1 Message Date
Natanael Arndt
e5b65b59c0 Add background option to enable/disable background. 2024-07-22 23:33:34 +02:00
Sergey Vartanov
f0b3d19b15 Support drawing options in scheme.
It is now necessary to enable drawing map features in the scheme file.
In the `options` field one should enable the following features in
order to have these features on the map, because they are disabled by
default:
  - `draw_nodes`,
  - `draw_buildings`,
  - `draw_trees`,
  - `draw_craters`,
  - `draw_directions`

Related to #140.
2023-05-28 13:54:14 +04:00
Sergey Vartanov
d3c18a3d5f Make building colors configurable.
It is now possible to draw building colors with `--building-colors`
option.  Map Machine will use roof colors in flat building mode and
roof and wall colors in isometric building mode.
2023-05-28 12:54:32 +04:00
Sergey Vartanov
fa92e684f4 Issue #100: add warning for coordinates option.
If boundary box is explicitly specified, coordinates will be ignored.
2022-10-11 22:22:35 +04:00
Sergey Vartanov
a6851f166b Issue #100: process invalid boundary box.
Stop processing if explicitly specified boundary box is invalid, even if
we can get the right one from another source.
2022-10-11 01:04:06 +04:00
Sergey Vartanov
836caf7138 Fix documentation and code style. 2022-10-05 17:09:39 +04:00
Sergey Vartanov
c0879bff36 Refactor flinger.
Element drawing module was using flinger for Mercator projection, which
is not exactly what is wanted.
2022-09-02 23:58:57 +03:00
Sergey Vartanov
cb1bdceedb Issue #140: check for an empty scheme file. 2022-08-19 10:58:39 +03:00
Sergey Vartanov
199dff9599 Issue #140: add error handling. 2022-08-17 09:30:13 +03:00
Sergey Vartanov
7e2d9ba5af Make credits optional. 2022-08-17 02:41:42 +03:00
Sergey Vartanov
c76e1f0301 Issue #140: put scheme inside map configuration.
Refactoring of `Scheme` and `MapConfiguration` classes.
2022-08-15 11:27:19 +03:00
Sergey Vartanov
893a4e150c Initialize input file names.
Makes static analyzer happy.
2022-07-10 23:55:19 +03:00
Sergey Vartanov
63e3439440 Make --size argument optional.
Now if `--coordinates` are specified, size is assumed to be
800 × 600 px.
2022-07-10 14:04:02 +03:00
Sergey Vartanov
80aa4b1680 Fix pydocstyle warnings. 2022-06-07 23:52:58 +03:00
Sergey Vartanov
ac2d777c99 Add / as a delimiter for coordinates.
Now coordinates in `--coordinates` option can be copied and pasted from
OpenStreetMap URL.
2022-06-06 02:09:42 +03:00
Sergey Vartanov
d0ef85cd0b Issue #125: split way priority.
Now 40.0 is a special way priority. Ways that have priority less than
40.0 will be drawn below the road layer, and ways that have priority
greater than 40.0 will be drawn above the road layer.
2022-05-31 00:43:45 +03:00
Sergey Vartanov
9b5066fd44 Make data credit optional. 2022-05-25 01:05:32 +03:00
Sergey Vartanov
1ea38aab97 Refactor drawing process. 2022-05-16 03:13:21 +03:00
Sergey Vartanov
5a934e2f37 Issues #126: refactor figures sorting. 2022-04-27 00:11:10 +03:00
Sergey Vartanov
c64eefec0b Fix boundary box computing. 2022-02-07 23:18:30 +03:00
Sergey Vartanov
92563dd403 Fix import. 2022-02-04 22:04:10 +03:00
Sergey Vartanov
95f3fc14b0 Rearrange credits. 2022-02-04 21:55:14 +03:00
Sergey Vartanov
2e3959c1d5 Fix walls order. 2022-02-04 21:52:56 +03:00
Sergey Vartanov
743cbb5df7 Issue #100: fix boundary box computing. 2022-01-28 07:41:59 +03:00
Sergey Vartanov
5ecbb3f349 Fix typo. 2022-01-26 02:03:23 +03:00
Sergey Vartanov
9a6f8d2f87 Issue #103: support credits. 2022-01-26 01:44:22 +03:00
Sergey Vartanov
7fbc7cb96f Improve construction drawing.
Draw buildings under construction without roof.
2022-01-23 23:38:20 +03:00
Sergey Vartanov
699c1e9592 Change scheme initialization. 2021-12-04 22:21:38 +03:00
Sergey Vartanov
1197a60bac Fix background color function. 2021-11-18 07:45:30 +03:00
Sergey Vartanov
b777d7bb4f Add white and black modes. 2021-11-12 03:32:17 +03:00
Sergey Vartanov
ed0e0384b7 Fix floating point numbers. 2021-11-11 23:52:46 +03:00
Sergey Vartanov
221b0bace6 Optimize imports. 2021-11-08 03:27:36 +03:00
Sergey Vartanov
5746edaa3f Fix Pylint warnings. 2021-11-08 02:53:51 +03:00
Sergey Vartanov
868a417afc Fix Pylint warnings. 2021-11-08 02:21:34 +03:00
Sergey Vartanov
e9933e9f2b Fix Pylint warnings. 2021-10-25 02:15:11 +03:00
Sergey Vartanov
dfbc2691d3 Reorganize the project. 2021-10-13 01:03:36 +03:00
Sergey Vartanov
1be9906baf Fix warnings. 2021-10-11 01:14:03 +03:00
Sergey Vartanov
96514ddf95 Remove progress bar. 2021-09-30 23:45:24 +03:00
Sergey Vartanov
067b815100 Issue #89: fix SVG encoding; remove progress bar. 2021-09-25 07:49:30 +03:00
Sergey Vartanov
fca08ab279 Add --roofs argument; rename argument.
Rename --show-tooltips to --tooltips.
2021-09-23 05:56:25 +03:00
Sergey Vartanov
e2ab792213 Fix zoom level.
Zoom level may be float and should not be cast to integer.
2021-09-22 08:32:57 +03:00
Sergey Vartanov
9c3cda3524 Support embankment=yes tag. 2021-09-21 05:43:07 +03:00
Sergey Vartanov
aa82353f00 Issue #84: add primitive road connections. 2021-09-18 20:25:51 +03:00
Sergey Vartanov
e3cf575f0d Fix arguments. 2021-09-16 08:19:24 +03:00
Sergey Vartanov
b715e12924 Add --coordinates and --size arguments.
Construct boundary box from center coordinates and size.
2021-09-16 07:44:41 +03:00
Sergey Vartanov
0a7bead1ca Issue #81: support lane drawing. 2021-09-15 07:50:55 +03:00
Sergey Vartanov
15466cb74c Fix road layers.
Draw roads layer by layer.
2021-09-14 00:13:55 +03:00
Sergey Vartanov
30dacffddf Support bridges for roads. 2021-09-13 06:31:12 +03:00
Sergey Vartanov
2bd89a6539 Rename Röntgen to Map Machine. 2021-09-08 03:55:16 +03:00
Renamed from roentgen/mapper.py (Browse further)