Commit Graph

85 Commits

Author SHA1 Message Date
Bart van den Eijnden 25ae9fe784 change simple type values to undefined instead of null 2013-11-25 10:48:30 +01:00
Bart van den Eijnden 91e834674c deal with elseFilter, some cleanup 2013-11-04 14:26:05 +01:00
Bart van den Eijnden c75082c75d add name and title to ol.style.Rule 2013-11-04 14:26:05 +01:00
Bart van den Eijnden ee7d46cea1 Add initial pass of write support, always write out ol.style.Stroke as LineSymbolizer 2013-11-04 14:24:01 +01:00
Paul Spencer bada596b45 Add default stability level to docs of exported things. 2013-10-24 18:20:24 -04:00
Tim Schaub dd67c7d8c3 Merge pull request #1111 from tschaub/font-weight
Add fontWeight property to TextSymbolizer.
2013-10-09 13:20:47 -07:00
Tim Schaub 2ee776d9f6 Support fontWeight in text symbolizer 2013-10-09 11:59:30 -06:00
Tim Schaub d5ab5ec1d2 Shape symbolizer extends point symbolizer 2013-10-09 09:01:51 -06:00
Tim Schaub e36c53dd23 Icon symbolizer extends point symbolizer 2013-10-09 09:01:30 -06:00
Tim Schaub 539ecbdd9c Add stroke support for text symbolizers 2013-10-07 16:17:38 -06:00
Tim Schaub 5e86ffcca5 Add stroke properties to text symbolizer literal 2013-10-07 16:09:20 -06:00
Tim Schaub 82e8da8df5 Removed unused stroke defaults for select intent 2013-10-02 17:38:19 -06:00
Tim Schaub bfa257eac1 Default value for zIndex 2013-10-02 17:31:42 -06:00
Tim Schaub 43c581ef5f Optional zIndex for text symbolizers 2013-10-02 17:31:33 -06:00
Tim Schaub b9a44d2db5 Optional zIndex for shape symbolizers 2013-10-02 15:51:14 -06:00
Tim Schaub b7cb21dc4a Optional zIndex for icon symbolizers 2013-10-02 15:26:17 -06:00
Tim Schaub 33cacab11c Optional zIndex for stroke symbolizers 2013-10-02 15:12:22 -06:00
Tim Schaub 04a23d0e45 Optional zIndex for fill symbolizers 2013-10-02 15:10:42 -06:00
Tim Schaub bbef15e50e Consider resolution when applying rules 2013-09-27 11:46:48 +02:00
Tim Schaub 78c54addb3 Add min/maxResolution properties to rule options 2013-09-27 11:45:43 +02:00
Tom Payne abaa220314 Use URL instead of Url or url in comments and strings 2013-09-20 12:28:04 +01:00
Tim Schaub 13a937fad7 Lazily create default style 2013-09-07 09:19:11 -06:00
ahocevar 9dae49dc18 Symbolizer defaults for the select renderIntent 2013-08-30 13:47:43 +02:00
Tim Schaub efeb00e4a5 Add x/y offset for icon symbolizers 2013-08-27 16:22:45 -06:00
Tim Schaub 3c993168c4 Cast to numbers for literals
There are times when we parse from XML without a schema (e.g. KML).  In these cases, features attributes will always be strings.  We can cast to number when creating literals from symbolizers and then assert `!isNaN` instead of asserting that they are numbers before.
2013-08-23 17:30:24 -04:00
Tim Schaub dd72408a88 Dependencies 2013-08-15 14:07:11 -04:00
Tim Schaub 4e053c4c0a No such thing as IconType 2013-08-15 13:57:36 -04:00
Tim Schaub af1cd64018 Lint 2013-08-15 13:54:37 -04:00
Tim Schaub 966034e4f7 Alphabetize 2013-08-15 13:50:50 -04:00
Tim Schaub bad401bc17 Add support for "else" symbolizers
When a style has no rules, the "else" symbolizers apply.  When a style has rules and none of them apply to the given feature, the "else" symbolizers apply.  Note that this is different than default symbolizer properties that might be merged into all symbolizers (as in OL2) - I don't think we should support that.
2013-08-15 10:37:18 -04:00
Tim Schaub 6078fe7b02 Line literal color instead of strokeColor etc. 2013-08-15 10:37:18 -04:00
Tim Schaub a5991aee03 Remove applyDefaultStyle method 2013-08-15 10:37:18 -04:00
Tim Schaub a670e225cd Clearer naming of method to create symbolizer literals 2013-08-15 10:37:18 -04:00
Tim Schaub d5d0262b4c Create literal with feature or geometry type 2013-08-15 10:37:18 -04:00
Tim Schaub c36ceab2a0 Separate stroke and fill 2013-08-15 10:37:18 -04:00
Tim Schaub dc54128c77 Method to reduce polygon literals 2013-08-15 10:37:18 -04:00
Tim Schaub 36bcd26305 Separate literals from symbolizers 2013-08-15 10:37:18 -04:00
Tim Schaub 90fb37c220 Rename ol.style.SymbolizerLiteral to ol.style.Literal 2013-08-15 10:37:18 -04:00
Tim Schaub 993e76e3a1 Support fillOpacity and strokeOpacity on polygon symbolizers 2013-08-05 11:16:49 -06:00
Tim Schaub f210d6d0e1 Rename line symbolizer opacity to strokeOpacity for consistency
We already have strokeColor and strokeWidth.  Having strokeOpacity makes sense.
2013-08-05 11:16:49 -06:00
Tim Schaub 1cedea6606 Support fillOpacity and strokeOpacity on shape symbolizers 2013-08-05 11:16:48 -06:00
Tim Schaub 8b93c5a0a0 Getters and setters for text symbolizer 2013-07-12 11:16:17 -06:00
Tim Schaub 0e87922389 Getters and setters for icon symbolizer 2013-07-12 10:42:59 -06:00
Tim Schaub 8844465188 Fixing bug with IconLiteral#equals and adding tests 2013-07-12 10:17:08 -06:00
Tim Schaub 2e08ccce03 Getters and setters for shape symbolizers 2013-07-12 09:57:40 -06:00
Tim Schaub a0d058b2fa Getters and setters for polygon symbolizer 2013-07-12 09:50:42 -06:00
Tim Schaub 711261171b Getters and setters for line symbolizers 2013-07-12 09:41:47 -06:00
Tim Schaub 2577d3f7d6 Rename ol.expression to ol.expr 2013-06-25 12:15:34 -06:00
Tim Schaub 8e8b26805f Uniformly support evaluating symbolizers without features
In combination with a (not yet implemented) `Symbolizer#isLiteral` method, calling `Symbolizer#evaluate` without a feature is the fast track for rendering batches of like-styled features.  This change also simplifies the handling of undefined symbolizer literal properties (where stroke or fill properties are optional).
2013-06-25 12:15:33 -06:00
Tim Schaub cab983f826 We are guarnteed that all TextLiteral properties are defined (see #770)
Instead of using the browser defaults, we use `ol.style.TextDefaults`.
2013-06-25 12:15:33 -06:00