Commit Graph

350 Commits

Author SHA1 Message Date
Tom Payne 756944a2e9 Fire postcompose events for all layer types 2013-11-20 11:42:06 +01:00
Tom Payne 36f85f9afd Factor out getTransform 2013-11-20 11:42:06 +01:00
Tom Payne a83b0768b2 Always dispatch postcompose event, even if no replay group 2013-11-20 11:42:06 +01:00
Tom Payne 4c6bd5bdf2 Rename getTransform to getImageTransform 2013-11-20 11:42:06 +01:00
Tom Payne 7035096fca Move dispatchPostComposeEvent into base class 2013-11-20 11:42:06 +01:00
Tom Payne f3138d6039 Fire postcompose events from map 2013-11-20 11:42:05 +01:00
Tom Payne 1670b67bd8 Rename postrender to postcompose 2013-11-20 11:42:05 +01:00
Tom Payne a990f0921e Rename ol.layer.VectorEvent to ol.render.RenderEvent 2013-11-20 11:42:05 +01:00
Tom Payne 2839aea6b1 Clear correct member variable, thanks @elemoine 2013-11-20 11:42:05 +01:00
Tom Payne a17560ade3 Only draw features and geometries that are visible 2013-11-20 11:42:05 +01:00
Tom Payne c5de1db9e6 Rename render to immediate 2013-11-20 11:42:05 +01:00
Tom Payne a0aad87adf Rename batch to replay 2013-11-20 11:42:04 +01:00
Tom Payne df70731e0c Fire per-layer postrender events 2013-11-20 11:42:04 +01:00
Tom Payne 4183d9cdb8 Move ol.replay into ol.render namespace 2013-11-20 11:42:01 +01:00
Tom Payne 61e221c504 Only draw batches in visible extent 2013-11-20 11:41:56 +01:00
Tom Payne 15583865b6 Re-use batches when animating or interacting 2013-11-20 11:41:52 +01:00
Tom Payne 8ccd733e08 Implement ol.replay.canvas.BatchGroup#isEmpty 2013-11-20 11:41:51 +01:00
Tom Payne 9a11cb87aa Handle vector layer opacity 2013-11-20 11:41:51 +01:00
Tom Payne 633920d0f7 Buffer batch group extent 2013-11-20 11:41:51 +01:00
Tom Payne f0b4a5a35e Activate canvas vector layer renderer 2013-11-20 11:41:49 +01:00
Tom Payne fb7ccc9d16 Add initial canvas vector layer renderer 2013-11-20 11:41:09 +01:00
Tom Payne bd82e1aa1a Remove vector code from files 2013-11-20 11:41:04 +01:00
Tom Payne 4e65fefc00 Move vector code out of the way 2013-11-20 11:39:21 +01:00
Tom Payne a60a03149e Correct transform and remove unused variables 2013-11-20 11:39:19 +01:00
Tom Payne ea74809256 Remove unused vector layer canvas 2013-11-20 11:39:19 +01:00
Tom Payne bbd461f181 Remove stray call to composeFrame, thanks @elemoine 2013-11-20 11:39:19 +01:00
Tom Payne d774d2007d Render features even while animating and interacting 2013-11-20 11:39:19 +01:00
Tom Payne 91fc1a7663 Render vector features directly to output canvas 2013-11-20 11:39:18 +01:00
Tom Payne e0ef5fc7ee Pass context instead of canvas when creating ol.renderer.canvas.Vector 2013-11-20 11:39:18 +01:00
Éric Lemoine 0c9f7eb616 Use experimental canvas vector layer renderer 2013-11-20 11:39:16 +01:00
Éric Lemoine 4b9642f4b1 Experimental canvas vector layer renderer 2013-11-20 11:36:28 +01:00
Tom Payne 3a2133c130 Add and use ol.renderer.canvas.Layer#composeFrame 2013-11-20 11:36:26 +01:00
Tom Payne 2b2e7bf786 Rename ol.renderer.Layer#renderFrame to prepareFrame 2013-11-20 11:31:20 +01:00
Tom Payne fb2878c200 Merge pull request #1296 from twpayne/improve-type-checking
Improve type checking
2013-11-20 02:27:42 -08:00
Tom Payne d3981e2891 Improve type checking in ol.renderer.canvas.Map 2013-11-20 11:13:46 +01:00
Frederic Junod 7052884913 Don't use ol.size.equals function
To avoid creating an array on each frame (60 times per second).
2013-11-19 17:43:46 +01:00
Frederic Junod 1816d8d160 Don't set the canvas size too early 2013-11-19 16:23:21 +01:00
Frederic Junod 00186413f8 Remove canvasSize_ property 2013-11-19 16:23:21 +01:00
Frederic Junod ca5960666d Be more strict with {Element} types 2013-11-12 13:53:37 +01:00
ahocevar 0ed208b710 Make renderIntent private and add a getter 2013-11-11 22:07:18 +01:00
Tim Schaub dbc3109ddb Only call expireTiles_ if already rendered 2013-11-07 10:30:58 -07:00
Tim Schaub b355c1f412 When expiring tiles, consider max symbol size
When an extent is invalidated, we have to expire tiles outside of that extent to account for symbolizer size.
2013-11-04 13:21:23 -07:00
Olivier Terral cc3660f32a Fix getImageElement calls in canvas and webgl renderer 2013-10-28 14:04:40 +01:00
ahocevar 33f426fd85 Merge pull request #1135 from ahocevar/no-blur
Use integers when positioning on the target canvas
2013-10-16 09:03:08 -07:00
ahocevar 386fac2429 Use integers when positioning on the target canvas
This avoids blurred images after view center changes (dx, dy)
and at fractional zoom levels (dw, dh).
2013-10-16 16:39:45 +02:00
Tim Schaub b02f47a5a5 Align pixels when drawing icons or shapes
The floor before setting the transform ensures that we translate by integer pixels for odd and even dimenstions.  The round before drawing the image ensures pixels are aligned.
2013-10-15 22:12:12 -06:00
Tim Schaub 2011e02364 Avoid calling lineTo on the same pixel for polygon stroke 2013-10-14 17:07:06 -06:00
Tim Schaub 71a6c4f270 Only call lineTo if we are in a new pixel for linestring
Rendering performance degrades as the context lineWidth increases when calling lineTo many times for the same pixel coordinate.  This appears to be a widespread performance issue and is very clearly improved by only calling lineTo when in a new pixel coordinate.
2013-10-14 17:06:44 -06:00
Tim Schaub 2ee776d9f6 Support fontWeight in text symbolizer 2013-10-09 11:59:30 -06:00
Tim Schaub 539ecbdd9c Add stroke support for text symbolizers 2013-10-07 16:17:38 -06:00