Commit Graph

105 Commits

Author SHA1 Message Date
simonseyock f73cda8ef5 reusing images in ol.style.Icon#clone 2017-09-12 11:58:38 +02:00
Tim Schaub d23f000846 Correctly create image icons in the tests 2017-08-21 10:32:05 -04:00
Tim Schaub 93cfc063c3 Correctly create an icon image 2017-08-18 17:35:59 -04:00
Tim Schaub a3e3e99baa Get rid of useless test exports 2017-08-17 15:16:58 -04:00
Tim Schaub 46bcce464f Add missing requires to tests 2017-08-16 13:43:28 -04:00
simonseyock 25aeb58c87 ol.style.RegularShape#getRadius2
returns undefined if no radius2 was provided in the constructor
2017-04-29 11:43:46 +02:00
Thomas Chandelle 7a4ae3a6ac Line Dash offset 2017-01-04 11:19:47 +01:00
Frederic Junod 392cbcc138 Enforces spacing around commas 2016-12-14 13:42:47 +01:00
Andreas Hocevar 886ddb160c Merge pull request #6132 from tohu12/getColor_to_Icon
Add getter for color property to ol.style.Icon
2016-11-16 13:54:24 +01:00
Tomas Hulek e7e425c288 Added getter for Color property to ol.style.Icon and updated test 2016-11-16 11:12:49 +01:00
Daniel Koch c60e1d0fb3 Setter methods for fill, image, stroke and text 2016-11-15 17:19:49 +01:00
jonataswalker 1372f98822 Add ol.style.Circle#setRadius 2016-09-13 17:24:31 -03:00
Simon Seyock ef0300b828 More consistent use of be and eql in tests 2016-09-12 12:17:47 +02:00
Simon Seyock b86a12e121 Added remaining tests 2016-09-11 21:45:00 +02:00
Simon Seyock 9f32e8d566 Added cloning of image element, color cloning 2016-09-11 21:44:59 +02:00
Simon Seyock 147f091998 Added ol.style.Icon#clone test 2016-09-11 21:44:58 +02:00
Simon Seyock a183c66704 Added tests for ol.style.Circle, ol.style.Stroke & ol.style.Fill 2016-09-11 21:44:58 +02:00
Tim Schaub bd015eabe4 One provide per test file 2016-08-12 10:53:49 -06:00
Tim Schaub a70c6f916b Give ol.style.IconImageCache its own file 2016-08-12 10:53:48 -06:00
Tim Schaub d4a5b2f48e Separate out ol.style.IconImage 2016-08-12 10:53:48 -06:00
Frederic Junod fbb585c5d8 Remove goog.addSingletonGetter function 2016-08-09 11:28:02 +02:00
Tim Schaub ed5dbd1293 Put test requires on top 2016-08-08 09:58:11 -06:00
Tim Schaub 9da581cb8f Move style files so they are named like their provide 2016-08-07 10:49:11 -06:00
Peter Robins f8f2cd11d5 Replace goog.getUid with ol.getUid 2016-07-20 11:01:00 +00:00
Andreas Hocevar 34d5cc228e Merge pull request #5429 from probins/testenums
Remove enums from tests
2016-07-15 09:12:58 +02:00
Frederic Junod 4bf1f56405 Add missing semicolon 2016-06-09 15:39:46 +02:00
Peter Robins 06fd92353b Remove enums from tests 2016-06-03 11:10:46 +00:00
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