Commit Graph

146 Commits

Author SHA1 Message Date
Éric Lemoine
ffcd4e8cc2 Fix hit detection on retina displays 2014-01-13 14:10:51 +01:00
Tom Payne
bedfb828d8 Display attributions and logos for vector sources 2014-01-06 16:21:58 +01:00
Tom Payne
1499af397d Use assertInstanceof instead of getVectorSource 2014-01-06 09:36:43 +01:00
Tom Payne
c97588c1e2 Use assertInstanceof instead of getVectorLayer 2014-01-06 09:36:43 +01:00
Tom Payne
b049094391 Merge pull request #1456 from twpayne/vector-api-style-function
[vector-api] Add StyleFunction types
2014-01-03 08:30:24 -08:00
Tom Payne
061fed50b7 Move all styleFunction types into ol.feature 2014-01-03 17:23:11 +01:00
Éric Lemoine
1e54947ebb Only hit-detect visible features 2014-01-03 15:48:23 +01:00
Éric Lemoine
e4f2a7552e Add getters to ol.style.Icon 2013-12-19 14:37:57 +01:00
Éric Lemoine
1e24ec28be Add getters to ol.style.Style 2013-12-19 11:32:57 +01:00
Tom Payne
76bddcf042 Pass tolerance to ol.render.canvas.ReplayGroup constructor 2013-12-17 17:46:01 +01:00
Tom Payne
81c0c37eb9 Simplify geometries to a tolerance of half a device pixel 2013-12-16 12:16:02 +01:00
Tom Payne
20e51a5e34 Pass pixel ratio to ol.renderer.canvas.VectorLayer#renderFeature 2013-12-16 12:15:32 +01:00
Tom Payne
2d0e6fd6bc Pass pixel ratio to ol.render.canvas.ReplayGroup constructor 2013-12-16 12:15:30 +01:00
Tom Payne
ec7d193543 Don't attempt to render features whose style is undefined or null 2013-12-13 22:59:34 +01:00
Tom Payne
afdfb92198 Use ol.layer.Vector.defaultStyleFunction by default 2013-12-13 22:59:34 +01:00
Éric Lemoine
fda2217166 Hit detect rotated features 2013-12-11 15:01:58 +01:00
Tom Payne
c6181ea9d1 Render simplified geometries in replay mode 2013-12-09 16:37:33 +01:00
Tom Payne
e9267e401c Pass layer to forEachFeatureAtPixel callback 2013-12-04 00:05:45 +01:00
Tom Payne
d7591594ca Allow forEachFeatureAtPixel callback to break out of loop 2013-12-04 00:05:44 +01:00
Éric Lemoine
65c922f580 Add ol.renderer.canvas.VectorLayer#forEachFeatureAtPixel 2013-12-02 15:06:19 +01:00
Éric Lemoine
b98ff1619d Add getRenderGeometryFunction_ 2013-12-02 15:06:18 +01:00
Éric Lemoine
8f361e35dd Do not draw non-loaded icons 2013-11-27 10:03:23 +01:00
Éric Lemoine
0a4fd29c10 Add icon support to canvas vector renderer 2013-11-26 15:25:32 +01:00
Éric Lemoine
317294756a Style function takes a resolution arg 2013-11-26 14:19:24 +01:00
Éric Lemoine
3820caade1 Style function returns an array of styles 2013-11-26 14:19:24 +01:00
Tom Payne
b0d5f96b65 Rename ol.render.canvas.Replay#draw to replay 2013-11-25 20:03:21 +01:00
Tom Payne
9396df54c3 Always use a defined renderGeometryFunction, thanks @elemoine 2013-11-22 11:34:42 +01:00
Tom Payne
a570261886 Pass renderGeometryFunction to ol.render.canvas.ReplayGroup 2013-11-22 11:34:41 +01:00
Éric Lemoine
efba141bf0 Do not use default style function 2013-11-20 15:35:10 +01:00
Tom Payne
479ec441ab Improve type checking in ol.renderer.canvas.VectorLayer 2013-11-20 11:45:25 +01:00
Frederic Junod
b39496f380 Dispatch 'precompose' event for ol.renderer.canvas.VectorLayer 2013-11-20 11:45:23 +01:00
Tom Payne
ea0f8d1f8e Add frameState to postcompose event and minimise calls to getTransform 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
7035096fca Move dispatchPostComposeEvent into base class 2013-11-20 11:42:06 +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
fb7ccc9d16 Add initial canvas vector layer renderer 2013-11-20 11:41:09 +01:00
Tom Payne
4e65fefc00 Move vector code out of the way 2013-11-20 11:39:21 +01:00