Commit Graph

78 Commits

Author SHA1 Message Date
Andreas Hocevar 339c7c5c23 Use imgSize when provided 2016-03-15 16:17:11 +01:00
Andreas Hocevar 3f2d79b7fe Replace goog.events.Event/EventTarget system with our own
This also removes goog.events.listen, goog.events.unlisten,
goog.events.unlistenByKey and goog.events.BrowserEvent.
2016-02-03 11:19:38 +01:00
Frederic Junod aec4e468e3 Add rotateWithView option to ol.style.RegularShape 2016-01-21 11:09:20 +01:00
Alexandre Brault c0b6eac0c2 Add color option to ol.style.Icon 2016-01-01 12:16:50 -05:00
Andreas Hocevar abb680d28f Accept HTMLCanvasElement for an icon's img 2015-12-04 14:14:01 +01:00
Frederic Junod cacf2629fd Replace goog.nullFunction with ol.nullFunction 2015-11-23 11:18:34 +01:00
Marc Jansen 80995159b1 Use a blackish default for filling texts 2015-09-17 16:52:59 +02:00
tsauerwein ed1d9cc8fc Add imgSize to Icon options 2015-04-02 19:18:38 +02:00
tsauerwein da7f38635b Remove hitDetectionOrigin 2015-01-08 15:38:00 +01:00
tsauerwein 461ec1d3bc Make sure hit-detection atlas is in sync
... with the atlas for the original images, so that
the offsets are the same.
2015-01-08 15:38:00 +01:00
Éric Lemoine 87bb1b956b Merge remote-tracking branch 'upstream/master' into webgl-point
Conflicts:
	src/ol/style/circlestyle.js
	src/ol/style/regularshapestyle.js
	test/spec/ol/style/regularshapestyle.test.js
2014-12-04 12:57:46 +01:00
tsauerwein e109be4b57 Rename size to initialSize 2014-12-04 11:49:50 +01:00
Bart van den Eijnden da39e9f96a For stars, use radius1 and radius2 in ol.style.RegularShape 2014-11-28 19:44:16 +01:00
tsauerwein d6841e6d9d Fix tests for when not run with WebGL support 2014-11-24 13:26:45 +01:00
tsauerwein ab42965aa2 Add hit-detection image to atlas (RegularShape) 2014-11-21 09:41:38 +01:00
tsauerwein 4132505313 Add hit-detection image to atlas (Circle) 2014-11-21 09:41:10 +01:00
tsauerwein 97f8e4ac8d Keep separate atlas for hit-detection images 2014-11-21 09:40:22 +01:00
tsauerwein e9e76954b2 Integrate atlas manager into RegularShape 2014-11-13 11:48:23 +01:00
tsauerwein ea65f65b37 Implement getChecksum for RegularShape 2014-11-13 10:50:07 +01:00
tsauerwein b3b7579f84 Use atlas manager for circle style 2014-11-12 17:22:27 +01:00
tsauerwein fe3cdd8d1b Add AtlasManagerOptions and improve docs 2014-11-07 11:12:32 +01:00
tsauerwein ebe0c6a88c Move AtlasManager to ol.style.AtlasManager 2014-11-06 17:51:15 +01:00
tsauerwein 509fbaee1c Replace hashCode with checksum
Hash codes are not collision free, so what we
actually need is a checksum.
2014-11-06 15:08:34 +01:00
tsauerwein 22e1159736 Implement hashCode for ol.style.Circle 2014-10-31 17:22:44 +01:00
oterral 2961970f59 Add ol.style.Icon tests for getAnchor and getOrigin 2014-06-05 08:40:00 +02:00
Éric Lemoine c2d0cab07a Add tests for ol.style.IconImageCache 2014-02-06 12:59:39 +01:00
Tom Payne 4e65fefc00 Move vector code out of the way 2013-11-20 11:39:21 +01: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 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
Tim Schaub 13a937fad7 Lazily create default style 2013-09-07 09:19:11 -06: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 af1cd64018 Lint 2013-08-15 13:54:37 -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