Commit graph

781 commits

Author SHA1 Message Date
a2d38b5e37 Display drules with automatic priorities
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-17 20:36:10 +03:00
990801324f Sort drule types in comments in logical order
And some other minor changes.

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-16 16:58:12 +03:00
04f5f44137 Allow setting negative overlays priorities to e.g. put icons below automatic optional captions
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-14 12:49:03 -03:00
24b8586c23 Update comments
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-11 20:16:16 -03:00
024810fb85 Validate visibilities
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-07 11:59:25 -03:00
a03d74f588 Load priorities from files without explicit drule types specified
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-07 11:59:25 -03:00
0e23a0e798 Remove drule types from prio.txt files
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-07 11:59:25 -03:00
fbecca40c3 Make optional captions below other overlays 2023-08-07 11:59:25 -03:00
2d5c553af8 Add comments with visibility range and other drules info
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-07 11:59:25 -03:00
b30c3bee84 Load grouped priorities
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-07 11:59:25 -03:00
41e9860567 Group types with same priorities
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-07 11:59:25 -03:00
98755e5d6a Add auto-fixing of captions/pathtexts priorities being higher than icon/shield
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-07 11:59:25 -03:00
8c5e152621 Disable priorities compression by default
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-07 11:59:25 -03:00
9c914f097b Compress / re-space priorities evenly
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-07 11:59:25 -03:00
58dcaaba51 Load priorities from *.prio.txt files
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-07 11:59:25 -03:00
0850cde772 Dump priorities into separate *.prio.txt files
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-07 11:59:25 -03:00
b34963026a Calculate minVisibleScale for overlays only
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-07 11:59:25 -03:00
492906e130 Prepend minVisibleScale to priority values
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-07 11:59:25 -03:00
8e8f17bd29 Remove unused zoom 0 from drules output
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-08-07 11:59:25 -03:00
ebe1ced85c Remove empty casing dashdot definitions
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-07-08 15:20:54 -03:00
2f311e7504 Add a bg-top priorities range
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-06-23 09:21:13 -03:00
dbba1c41e0 Allow comments in mapcss-mapping.csv
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-06-20 21:56:13 +02:00
d580b748f2 Make captions optional by default
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-03-26 12:08:57 -03:00
5b160e185f Remove apply_for_type symbol attribute
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-02-15 11:33:00 -03:00
9b38690e69 Optimize choosers by discarding non-matching rules
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-02-10 12:31:30 -03:00
27b41b5e3f Add zoom into choosers optimization tree
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-02-10 12:31:30 -03:00
70fa78f39b Optimize frequently called functions
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-02-10 12:31:30 -03:00
41498a6ec5 Process unique runtime conditions once only
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-02-10 12:31:30 -03:00
4e29892282 Optimize looking for runtime conditions in selectors
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-02-10 12:31:30 -03:00
a6daa7121b Make per-tag sets of selectors more precise and small
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-01-21 12:57:14 -03:00
471abbd754 Look for missing base_width to use with casing-width
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-01-20 11:29:46 -03:00
32cc5aafb6 Add casing-width-add support
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-01-20 11:29:46 -03:00
Viktor Govako
f9de08f90f
Merge pull request #4 from organicmaps/vng-fix
Don't mix "casing-" for line and area rules.
2023-01-17 17:30:35 -03:00
Viktor Govako
d6a507cfc0 Don't mix "casing-" for line and area rules.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2022-06-07 16:45:54 +03:00
Viktor Govako
01d4e4586c
Merge pull request #3 from organicmaps/vng-python3
Python3 + priorities ascending order.
2022-05-17 11:50:11 +03:00
Viktor Govako
89b59de837 Python3 migration.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2022-05-16 17:06:19 +03:00
Viktor Govako
367da7e676 Added -x-me-min-text-priority hack.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2022-05-16 12:29:40 +03:00
Evgeniy A. Dushistov
967fcbc17f migration to python3
Signed-off-by: Evgeniy A. Dushistov <dushistov@mail.ru>
2021-05-02 22:41:05 +02:00
mpimenov
cbaff545dd
Merge pull request #37 from tatiana-yan/mark_original_type
Mark original type to distinguish it among replacing types.
2020-02-28 16:23:06 +03:00
tatiana-yan
d26470bc11 Mark original type to distinguish it among replacing types. 2020-02-28 16:22:16 +03:00
Ilya Zverev
0fb640bd0e Fix static tags detection by skipping obsolete lines 2017-12-28 15:40:02 +03:00
Roman Kuznetsov
2dc0d72e3f Merge pull request #35 from mapsme/extra_tag
Support extra tags for libkomwm
2017-07-27 16:49:40 +03:00
Ilya Zverev
2ef9e75495 Remove hardcoded sport key reference 2017-07-27 16:26:21 +03:00
Ilya Zverev
071089b704 Support extra tags for libkomwm 2017-07-27 16:03:28 +03:00
Roman Kuznetsov
01addafa2e Updated drules after protobuf updating 2017-07-10 15:58:01 +03:00
Roman Kuznetsov
edf671e62a Merge pull request #33 from mapsme/no_dup
Remove printing of a message
2017-03-22 17:41:31 +03:00
Ilya Zverev
21bdff8b77 Remove print 2017-03-22 17:39:48 +03:00
Ilya Zverev
17d84174bf Merge pull request #32 from rokuz/casing-fixes
Added strict checking of casing necessity
2017-02-14 13:40:42 +04:00
r.kuznetsov
c5bda708d1 Added strict checking of casing necessity 2017-02-14 12:38:14 +03:00
Ilya Zverev
8312fed1e7 Merge pull request #30 from rokuz/added-area-border-color
Added border color for areas
2017-02-14 12:56:02 +04:00