Commit graph

521 commits

Author SHA1 Message Date
Sergey Vartanov
5019303ef9 Refine indoor documentation. 2022-09-15 11:56:47 +03:00
Sergey Vartanov
86245da87c Add indoor preview. 2022-09-13 01:26:28 +03:00
Sergey Vartanov
89afd8bb20 Support way element drawing. 2022-09-13 00:11:53 +03:00
Sergey Vartanov
c8650e285d Reorder icons in configuration. 2022-09-12 23:46:45 +03:00
Sergey Vartanov
c5bee25391 Add documentation for elements. 2022-09-06 00:04:27 +03: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
7092ef0052 Add icons for flags.
For tags:
  - `man_made=flagpole` + `country=US` (USA),
  - `man_made=flagpole` + `country=Tanzania`,
  - `man_made=flagpole` + `country=PH` (Philippines),
  - `man_made=flagpole` + `country=FR` (France).

Top four values from current Taginfo: see
https://taginfo.openstreetmap.org/keys/country#values
2022-08-21 17:32:58 +03:00
Sergey Vartanov
cdbcedc6ec Add error handling for SVG parsing. 2022-08-19 10:59:33 +03:00
Sergey Vartanov
cb1bdceedb Issue #140: check for an empty scheme file. 2022-08-19 10:58:39 +03:00
Sergey Vartanov
a6955c7d22 Issue #139: change indoor colors.
Try to make indoor colors darker and use dark border for corridors
(this may lead to some unwanted results, but we will see).
2022-08-19 00:51:39 +03:00
Sergey Vartanov
d068a76a48 Issue #139: change style for indoor=column.
Use `indoor_wall_color` to make it darker and distinguishable from its
surroundings.
2022-08-18 23:57:36 +03:00
Sergey Vartanov
54bc5d1a52 Restore requirements as a list. 2022-08-18 11:58:06 +03:00
Sergey Vartanov
afb050c2b0 Issue #140: fix default colors in scheme. 2022-08-17 09:36:04 +03:00
Sergey Vartanov
199dff9599 Issue #140: add error handling. 2022-08-17 09:30:13 +03:00
Sergey Vartanov
692997f54a Rename element command to draw.
And add node drawing.
2022-08-17 08:12:53 +03:00
Sergey Vartanov
6dd9bc27e8 Add common interface to element drawing. 2022-08-17 02:44:53 +03:00
Sergey Vartanov
be28d4fd41 Add more options to grid drawing. 2022-08-17 02:43:54 +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
596910fe01 Issue #140: find scheme by identifier or path. 2022-08-15 10:44:42 +03:00
Sergey Vartanov
edb69c902f Issue #140: add scheme option. 2022-08-15 10:42:10 +03:00
Sergey Vartanov
470feb4248 Issue #139: add icons for styled areas.
Map Machine did not create icons for areas if they have style.  Just
like previous issue, it seems like a temporary solution for a problem I
can't remember now.
2022-08-14 22:36:09 +03:00
Sergey Vartanov
24851f73f9 Issue #139: fix style for indoor=room.
`indoor=room` tag was processed only if `area=yes` is set.  Probably
there are cases that require such behavior, but I'm not sure about it.
2022-08-14 22:32:18 +03:00
Sergey Vartanov
3c5a151984 Fix icon configuration. 2022-08-08 23:57:24 +03:00
Sergey Vartanov
71f5636a0b Fix icon names. 2022-08-07 23:56:38 +03:00
Sergey Vartanov
5361725820 Fix imports. 2022-08-05 00:05:36 +03:00
Sergey Vartanov
49db628d76 Add icon for tomb=pyramid. 2022-08-04 23:56:11 +03:00
Sergey Vartanov
7b1c8e82a0 Add single node drawing. 2022-08-03 13:07:22 +03:00
Sergey Vartanov
68700089ca Redraw fountain icons. 2022-08-03 13:06:35 +03:00
Sergey Vartanov
3dffaa5363 Issue #48: add icon for shop=variety_store. 2022-08-02 23:59:48 +03:00
Sergey Vartanov
b0d946a6b7 Issue #48: reuse icon for shop=department_store. 2022-08-02 23:55:34 +03:00
Sergey Vartanov
efd9ccb31b Close #55: add icon for natural=spring. 2022-08-02 23:51:21 +03:00
Sergey Vartanov
31d550021c Issue #48: add icon for shop=car_parts. 2022-08-02 01:43:42 +03:00
Sergey Vartanov
176e984eab Move grid to separate file. 2022-07-26 03:45:55 +03:00
Sergey Vartanov
9d2ac7e41c Rename element drawing files. 2022-07-26 03:35:53 +03:00
Sergey Vartanov
05c0c3da63 Move element drawing to element module. 2022-07-26 01:47:25 +03:00
Sergey Vartanov
1bb3ca5a37 Fix icons file. 2022-07-24 18:29:30 +03:00
Sergey Vartanov
f835aa1701 Fix code style. 2022-07-24 18:26:17 +03:00
Sergey Vartanov
913ac05f23 Fix documentation. 2022-07-18 23:42:48 +03:00
Sergey Vartanov
0371172aef Fix comment style in tests. 2022-07-18 23:31:23 +03:00
Sergey Vartanov
70660de170 Redraw statue shape. 2022-07-10 23:58:33 +03:00
Sergey Vartanov
96dc60355c Add gazette to configuration. 2022-07-10 23:56:32 +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
348e5fd58b Check Python version before launching.
This should decrease number of problems related to using Map Machine
with unsupported Python version.
2022-07-10 14:01:53 +03:00
Sergey Vartanov
eef3ed34d4 Add gazette icon. 2022-07-06 23:52:45 +03:00
Sergey Vartanov
3de5651442 Redraw hopscotch icon. 2022-07-06 23:44:43 +03:00
Sergey Vartanov
c3e9d2b4ac Make icon shape verification more precise. 2022-07-06 02:45:48 +03:00
Sergey Vartanov
70abc9b296 Add emojis associated with icons. 2022-07-06 02:25:02 +03:00
Sergey Vartanov
98cd735037 Allow red color for sketches.
Red is for icons that should be used in the future.
2022-07-06 02:23:48 +03:00