Commit Graph

137 Commits

Author SHA1 Message Date
Konstantin Käfer
a6f7696feb add interpolation 2014-06-30 17:41:25 +02:00
Konstantin Käfer
18d898fae7 refactor functions 2014-06-30 16:52:39 +02:00
Konstantin Käfer
93cd4c5c7b move StyleLayerGroup and PropertyTransition to their own files 2014-06-30 11:46:03 +02:00
Konstantin Käfer
a41f0db7dd add way for adding/removing classes 2014-06-27 19:11:57 +02:00
Konstantin Käfer
48019ae85c make more members of StyleLayer const 2014-06-27 18:39:42 +02:00
Konstantin Käfer
881c0f1412 more docs + remove StyleLayer::Ptr typedef 2014-06-27 18:01:28 +02:00
Konstantin Käfer
e77b3d71c4 add raster enabled/opacity 2014-06-27 17:13:21 +02:00
Konstantin Käfer
0e9e297275 more refactoring and fallback values 2014-06-27 16:59:42 +02:00
Konstantin Käfer
d75f0075f3 even more refactoring 2014-06-27 16:42:44 +02:00
Konstantin Käfer
3d18b84deb add interface for iterating over classproperties 2014-06-27 16:28:01 +02:00
Konstantin Käfer
ad4497c909 reorganize properties 2014-06-27 16:19:43 +02:00
Konstantin Käfer
38d9cd0d4f use class ids rather than names for storing styles 2014-06-27 15:57:47 +02:00
Konstantin Käfer
e989478b27 add class dictionary to avoid storing strings all the time 2014-06-27 15:53:12 +02:00
Konstantin Käfer
6d9de75732 rename time => timestamp to avoid naming conflicts 2014-06-27 15:52:45 +02:00
Konstantin Käfer
6de9d9769e cleanup 2014-06-26 21:54:57 +02:00
Konstantin Käfer
084c938e54 fix fill outline color 2014-06-26 15:32:18 +02:00
Konstantin Käfer
99d939b9a6 cleanup 2014-06-26 15:16:28 +02:00
Konstantin Käfer
aff667d742 add filter expressions 2014-06-26 15:04:18 +02:00
Konstantin Käfer
7637b7f8c7 get applied classes 2014-06-24 16:47:11 +02:00
Konstantin Käfer
b72583371c add memory header 2014-06-24 14:10:00 +02:00
Konstantin Käfer
a1e40c1780 change enum parsing 2014-06-24 13:45:14 +02:00
Konstantin Käfer
ba4294ae0c saving current state 2014-06-23 18:05:25 +02:00
Konstantin Käfer
3cd1b8f07c template the parser 2014-06-16 17:00:25 +02:00
Konstantin Käfer
e3b9e9abf6 make code more concise 2014-06-16 16:48:21 +02:00
Konstantin Käfer
4a41b02cef move to std::map for classes 2014-06-16 15:47:37 +02:00
Konstantin Käfer
71d2b230a1 separate bucket render properties and change naming 2014-06-16 11:49:11 +02:00
Konstantin Käfer
ef76be64a2 separate out token replacer as a standalone function in preparation for #300 2014-06-04 10:53:08 +02:00
Konstantin Käfer
ce23e88b01 add a few tests 2014-06-03 00:38:49 +02:00
Konstantin Käfer
3c26f53e63 generalize variant comparison and add more operators 2014-06-02 13:50:25 +02:00
Konstantin Käfer
dd4c8a67ba add explicit true type == "no filter" 2014-06-02 11:14:09 +02:00
Konstantin Käfer
606ad56220 implement nested expression parsing 2014-06-02 11:14:09 +02:00
Konstantin Käfer
3bc5e03253 simple expression support 2014-06-02 11:14:09 +02:00
Konstantin Käfer
67bbcd5334 allow setting prerender state with a function too 2014-06-01 18:12:44 +02:00
Konstantin Käfer
1be972eb15 Allow property functions for prerender properties, but tie them to the tile's zoom level instead of the map zoom level
fixes #253
2014-06-01 17:43:12 +02:00
Justin R. Miller
a81a336638 programmatic styling API 2014-05-31 11:32:42 -07:00
Dane Springmeyer
5f03cc1595 [hardening] fix double const& declaration 2014-05-30 13:41:07 -07:00
Young Hahn
2d0b3482ec Merge branch 'master' into linebreak
Conflicts:
	src/map/tile_parser.cpp
	src/text/glyph_store.cpp
2014-05-30 09:00:29 -04:00
Konstantin Käfer
461a19dfa2 fallback to default properties instead of not rendering when we don't have a style
refs #272
2014-05-30 13:36:53 +02:00
Ansis Brammanis
9ac55e0d74 add text letterSpacing 2014-05-30 04:02:23 -04:00
Ansis Brammanis
7c653895c6 translate as a text bucket property
When used, text is translated before being checked for collisions.
2014-05-30 03:50:25 -04:00
Ansis Brammanis
41c310c762 add verticalAlign for text
Default is center. Other options are "top" and "bottom"
2014-05-30 03:11:57 -04:00
Mike Morris
3442403e67 parse maxWidth, lineHeight and alignment, pass to FontStack::getShaping 2014-05-30 00:07:22 -04:00
Konstantin Käfer
192b5a30e4 make PropertyTransitions optional 2014-05-28 10:49:56 +02:00
Konstantin Käfer
23da773667 a few preliminary speed improvements 2014-05-27 12:08:36 +02:00
Konstantin Käfer
708fb01276 used unordered_maps 2014-05-27 11:55:40 +02:00
Konstantin Käfer
9477097f0f Revert "refs #253: support blur function property values"
This reverts commit 34b90476b4.
2014-05-27 09:59:35 +02:00
Justin R. Miller
34b90476b4 refs #253: support blur function property values 2014-05-26 23:48:50 -07:00
Konstantin Käfer
1b58fb30a3 use unordered map, don't make copies (auto usage!) and swap maps 2014-05-26 18:40:47 +02:00
Konstantin Käfer
9b5c75cef0 add isVisible function to Properties 2014-05-26 15:34:50 +02:00
Konstantin Käfer
4b8e3faa70 consolidate stylesheet cascading 2014-05-26 12:43:49 +02:00