Commit Graph

117 Commits

Author SHA1 Message Date
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
Frederic Junod
8d40308d6e Fix indentation 2013-11-28 15:05:07 +01:00
Frederic Junod
0908490385 Add lineDash property to ol.style.Stroke 2013-11-28 13:47:31 +01:00
Frederic Junod
bf9cd0a675 Add miterLimit property to ol.style.Stroke 2013-11-28 11:49:56 +01:00
Frederic Junod
0bd77d3caf Add lineJoin property to ol.style.Stroke 2013-11-28 11:31:06 +01:00
Frederic Junod
b210073ef0 Add lineCap property to ol.style.Stroke 2013-11-28 09:36:54 +01:00
Tom Payne
b0d5f96b65 Rename ol.render.canvas.Replay#draw to replay 2013-11-25 20:03:21 +01:00
Éric Lemoine
6ca2fef0a3 Always same format for color strings 2013-11-22 17:02:59 +01:00
Éric Lemoine
68caa8141c Fix typo in replay code 2013-11-22 16:36:06 +01:00
Éric Lemoine
c4731ff37b Use canvas style default values 2013-11-22 11:49:14 +01:00
Éric Lemoine
2a122f057c Rename currentFillColor to currentFillStyle 2013-11-22 11:49:14 +01:00
Tom Payne
9396df54c3 Always use a defined renderGeometryFunction, thanks @elemoine 2013-11-22 11:34:42 +01:00
Tom Payne
13ed52d9e8 Add FIXME 2013-11-22 11:34:42 +01:00
Tom Payne
32833a15bb Implement skipping of LineString and MultiLineString geometries 2013-11-22 11:34:42 +01:00
Tom Payne
a9af504a19 Factor out ol.render.canvas.LineStringReplay#setStrokeStyle_ 2013-11-22 11:34:42 +01:00
Tom Payne
1cccdfa9db Implement skipping of Point and MultiPoint geometries 2013-11-22 11:34:42 +01:00
Tom Payne
8b6f71f7f6 Factor out beginGeometry and endGeometry 2013-11-22 11:34:42 +01:00
Tom Payne
297251661a Implement skipping of Polygon and MultiPolygon geometries 2013-11-22 11:34:41 +01:00
Tom Payne
d05530290f Add BEGIN_GEOMETRY instruction 2013-11-22 11:34:41 +01:00
Tom Payne
a570261886 Pass renderGeometryFunction to ol.render.canvas.ReplayGroup 2013-11-22 11:34:41 +01:00
Frederic Junod
c0ad472984 Add missing 'undefined' in jsdoc type definition 2013-11-21 14:48:49 +01:00
Frederic Junod
76a908d00c Split anchor ImageReplay property into anchorX and anchorY 2013-11-21 14:30:55 +01:00
Frederic Junod
db8f476098 Add ol.style.Image.size property 2013-11-21 14:27:04 +01:00
Frederic Junod
c715764680 Change ol.style.Image.anchor property type to ol.Pixel 2013-11-21 14:11:59 +01:00
Tom Payne
f09de84011 Fix typo 2013-11-21 12:31:23 +01:00
Éric Lemoine
c0eb7bb1f6 Store raw style values for ImageReplay 2013-11-21 12:15:38 +01:00
Éric Lemoine
5493543c1f Store raw style values for PolygonReplay 2013-11-21 12:15:37 +01:00
Éric Lemoine
0ccd1ef217 Store raw style values for LineStringReplay 2013-11-21 12:15:37 +01:00
Tom Payne
16957c9833 Only recompute pixel coordinates when transform has changed 2013-11-21 10:04:19 +01:00
Éric Lemoine
1e7266f6b5 Use new ol.style in ol.render.canvas.Replay 2013-11-20 15:35:10 +01:00
Tom Payne
3699510e63 Remove repeated Replay 2013-11-20 11:45:49 +01:00
Tom Payne
adfc56b14c Improve type checking in ol.render.canvas.Replay 2013-11-20 11:45:23 +01:00