Commit Graph

198 Commits

Author SHA1 Message Date
Tom Payne
ffc27719ea Use oriented rings where needed 2014-01-21 16:11:53 +01:00
Tom Payne
6552046aa0 Use oriented rings where needed 2014-01-21 16:11:52 +01:00
Tom Payne
50a322208a Merge pull request #1514 from twpayne/vector-api-circle
[vector-api] Add ol.geom.Circle
2014-01-14 03:46:48 -08:00
Tom Payne
825c5290f6 Add ol.render.canvas.PolygonReplay#drawCircleGeometry 2014-01-14 12:34:46 +01:00
Tom Payne
5052bef4a5 Add ol.replay.canvas.Instruction.CIRCLE 2014-01-14 12:34:46 +01:00
Éric Lemoine
e76ec3b292 Merge pull request #1504 from elemoine/vector-api-image-vector-hit-detection
[vector-api] Vector image hit detection
2014-01-14 03:33:47 -08:00
Tom Payne
b2b74a5ee6 Add ol.render.IRender#drawCircleGeometry 2014-01-14 12:31:50 +01:00
Éric Lemoine
f7be1c155e Hit detection refactoring
Get the frame state from the map instead of storing values in the layer renderers.
2014-01-14 12:26:49 +01:00
Tom Payne
474b4a444b Use a switch statement, rather than ifs, in ol.render.canvas.Replay 2014-01-13 18:17:38 +01:00
Éric Lemoine
ffcd4e8cc2 Fix hit detection on retina displays 2014-01-13 14:10:51 +01:00
Frederic Junod
3f751a5903 Scale the image size and anchor by pixelRatio 2014-01-08 14:25:50 +01:00
Tom Payne
c816d0105d Replay groups in defined order 2014-01-07 13:58:21 +01:00
Éric Lemoine
40fdd8a637 Merge pull request #1473 from elemoine/vector-api-zindex
[vector-api] Make canvas immediate API support zIndex
2014-01-06 12:17:33 -08:00
Éric Lemoine
6db8f0c29f Add ol.render.canvas.Replay#drawAsync 2014-01-06 17:10:00 +01:00
Tom Payne
72dc5f297d Merge pull request #1462 from twpayne/vector-api-clean-ups
[vector-api] Minor clean-ups
2014-01-06 02:09:38 -08:00
Tom Payne
7ee2747948 Always use goog.vec.Mat4.Number instead of goog.vec.Mat.AnyType 2014-01-06 09:29:36 +01:00
Tom Payne
310d0dc792 Rename replayes to replays 2014-01-02 22:13:37 +01:00
Tim Schaub
86374d1fde Merge pull request #1428 from tschaub/image-scale
Properly scale and rotate images with anchor offsets.
2013-12-20 13:44:10 -08:00
Éric Lemoine
4a96eaff60 Fix linestring hit detection bug 2013-12-20 22:24:52 +01:00
Tim Schaub
c599c649ab Translate to image anchor point, scale, rotate, translate back 2013-12-20 13:27:08 -07:00
Tom Payne
b3f77b4d68 Add image rotation and scaling to ol.render.canvas.Replay 2013-12-19 16:26:06 +01:00
Tom Payne
c6b961782a Sort miscellaneous properties and add rotation and scale 2013-12-19 16:26:05 +01:00
Éric Lemoine
d4d9cb6a3a Add getters to ol.style.Stroke 2013-12-19 14:37:57 +01:00
Éric Lemoine
5cd3ab06fc Add getters to ol.style.Image 2013-12-19 14:37:57 +01:00
Éric Lemoine
16047ff852 Add getters to ol.style.Fill 2013-12-19 11:41:38 +01:00
Éric Lemoine
fe7b614f22 Support hit detection on tainted canvas 2013-12-19 09:10:09 +01:00
Éric Lemoine
ee1ac6b23c Canvas replay uses ol.style.Image#getImage 2013-12-19 00:20:11 +01:00
Tom Payne
9bc92b2166 Always quantize all polygons 2013-12-17 17:46:43 +01:00
Tom Payne
dc69e02438 Pass tolerance to ol.render.canvas.Replay constructors 2013-12-17 17:46:28 +01:00
Tom Payne
76bddcf042 Pass tolerance to ol.render.canvas.ReplayGroup constructor 2013-12-17 17:46:01 +01:00
Tom Payne
9b1a5f512d Scale line widths by pixel ratio in replay mode 2013-12-16 12:15:31 +01:00
Tom Payne
8304a2c7aa Pass pixel ratio to ol.render.canvas.Replay constructors 2013-12-16 12:15:31 +01:00
Tom Payne
2d0e6fd6bc Pass pixel ratio to ol.render.canvas.ReplayGroup constructor 2013-12-16 12:15:30 +01:00
Tom Payne
e4d85e27b1 Merge pull request #1358 from twpayne/vector-api-geometry-collection
[vector-api] Add ol.geom.GeometryCollection
2013-12-11 13:07:05 -08:00
Tom Payne
4205c01414 Add ol.geom.GeometryCollection rendering 2013-12-11 16:49:47 +01:00
Éric Lemoine
829381fd43 Always fill polygons for hit detection 2013-12-11 16:16:02 +01:00
Éric Lemoine
ac2a3cd1e8 Rename replayForward functions to replay 2013-12-11 16:16:02 +01:00
Éric Lemoine
8712509300 Rename replayBackward functions to replayHitDetection 2013-12-11 16:16:02 +01:00
Éric Lemoine
3019933cb6 Rename reverseInstructions_ function to reverseHitDetectionInstructions_ 2013-12-11 16:16:02 +01:00
Éric Lemoine
86995a8cb4 Rename reversedInstructions array to hitDetectionInstructions 2013-12-11 16:16:02 +01:00
Éric Lemoine
fda2217166 Hit detect rotated features 2013-12-11 15:01:58 +01:00
Éric Lemoine
15db1eb416 Use reversedInstructions for hit detection 2013-12-09 14:08:55 +01:00
Éric Lemoine
30c0aa3cc2 Replay objects create a reversedInstructions array 2013-12-09 14:08:55 +01:00
Tom Payne
600cb3a0ff Add @struct annotation where possible 2013-12-04 16:07:39 +01:00
Tom Payne
d7591594ca Allow forEachFeatureAtPixel callback to break out of loop 2013-12-04 00:05:44 +01:00
Éric Lemoine
a537814169 Add hit detection support to replay API 2013-12-02 15:06:19 +01:00
Éric Lemoine
09a88569a8 Add per-geometry mode to replay API 2013-12-02 15:06:19 +01:00
Éric Lemoine
e358321b92 The iRender draw functions are passed a data object 2013-12-02 15:06:18 +01:00
Tom Payne
3ab00704d8 Rename ol.vec.Mat4.equal2D to ol.vec.Mat4.equals2D 2013-12-02 09:57:02 +01:00
Tom Payne
f38e5f5f28 Only set line dash if it is supported 2013-11-28 18:04:01 +01:00