Commit Graph

102 Commits

Author SHA1 Message Date
Tim Schaub
3cf8618fc7 Prefer single line assignment to 80 character limit 2016-01-11 18:56:08 -08:00
Andreas Hocevar
4b942bc4f6 Add VectorTile renderer 2015-10-28 10:29:01 +01:00
Marc Jansen
138adf0509 Remove goog.isNull in renderer classes 2015-10-01 09:17:14 +02:00
Guillaume Beraudo
3811228ac7 Add Z-index to layers
This commit allows setting a z-index property on the layers and uses
it in the canvas, WEBGL and DOM map renderers for ordering the layers
before rendering.

Default z-index is 0 for managed layers and 1000 for unmanaged ones.
It allows always on bottom, always on top and more complex layer layouts.
2015-09-03 11:31:57 +02:00
Andreas Hocevar
53d5d8c1d9 Get rid of ol.FeatureOverlay
This also introduces a wrapX option to the Draw, Modify and Select
interaction.
2015-06-09 15:44:31 +02:00
Andreas Hocevar
513677fecd Render map replay group on the correct world instead of wrapping it
By using the frameState's focus, we can adjust extent and transform and
render it for the world of interest instead of wrapping it and rendering
for every visible world.
2015-04-22 09:11:19 +02:00
Andreas Hocevar
23ed120361 Clarify when we make feature overlays wrap the x-axis 2015-04-21 09:56:03 +02:00
Andreas Hocevar
40feabc3c8 Do not require an extent for global projections 2015-04-21 09:11:06 +02:00
Andreas Hocevar
4f8dca92ba Ensure functions are always called with the same number of args 2015-04-21 08:21:31 +02:00
Andreas Hocevar
8fd4e2c7c5 Improve docs, comments and code readability 2015-04-19 08:52:37 +02:00
Andreas Hocevar
b51aaa5055 Wrap the x-axis for the map's replay group 2015-04-18 19:10:53 +02:00
Marc Jansen
fb9ba22c30 Add message to assertions. 2015-03-30 22:53:03 +02:00
Tim Schaub
33c197cf16 Layer renderers should not require a map renderer 2015-02-08 07:25:10 -07:00
Éric Lemoine
ddc51ee267 Unconditionally draw Replay's 2014-12-18 13:04:29 +01:00
Guillaume Beraudo
f715e3186a Readability rearangement in canvasmaprenderer.js 2014-11-07 11:15:02 +01:00
Éric Lemoine
def1af4492 No composeFrame if prepareFrame returns false 2014-08-24 14:55:13 +02:00
Tim Schaub
b9f444a008 Rename olx.View2DState to olx.ViewState and use viewState property 2014-06-27 09:58:25 -04:00
Andreas Hocevar
f67767aaf0 Add ol.renderer.vector.getSquaredTolerance and ol.SIMPLIFY_TOLERANCE 2014-06-27 12:10:46 +02:00
Éric Lemoine
6cf4c95762 Flush the vector context after replaying the batch 2014-06-26 14:06:56 +02:00
Andreas Hocevar
ba2d49d715 Finish the replay group after dispatching the compose event 2014-06-26 13:16:34 +02:00
Éric Lemoine
18d117dff6 Hit detection for features drawn at pre/postcompose 2014-06-25 18:32:02 +02:00
Éric Lemoine
49a1215f75 Pass a replay group to ol.render.Event 2014-06-14 14:21:34 +02:00
Hadrien Tulipe
7aab28afcc Provide ol.RendererType structure through ol.renderer.Map
It was previously in ol.Map, but it could not be provided because
of circular dependencies.
2014-05-27 22:47:02 +02:00
Hadrien Tulipe
1d6f9ca80b Expose the map renderer type to the public API
In the case  where the map decides itself which renderer to use. It can
be convenient for the developer to have knowledge of the choice made.
2014-05-27 22:47:02 +02:00
Éric Lemoine
8cd5f6d642 Merge pull request #2109 from elemoine/visibleandinrange
Hit detection respects min and maxResolution
2014-05-25 14:43:44 +02:00
Éric Lemoine
fd8a46dcae Hit detection respects min and maxResolution 2014-05-25 14:35:07 +02:00
Andreas Hocevar
eb6a938062 Do not document object literals as interfaces
Instead, object literals with properties that should not be
renamed can go in externs/olx.js.
2014-05-22 15:48:47 +02:00
Tim Schaub
cec41c4b0a Add missing requires
Without explicit requires, it is possible that a build would exclude ol.js.
2014-04-30 08:37:52 -06:00
Tim Schaub
aa3a20e911 Provide layer states array in frame state 2014-04-04 07:36:42 -06:00
Frederic Junod
55de0a54b9 Add ol.dom.createCanvasContext2D function 2014-04-02 09:37:41 +02:00
Tom Payne
022a7a03e0 Use oli.FrameState instead of ol.FrameState 2014-03-10 14:48:23 +01:00
Tom Payne
0e90cf02ad Pass view rotation to ol.render.canvas.Immediate 2014-02-21 12:57:09 +01:00
Éric Lemoine
f9e04ad7d5 Use ol.renderer.Map#scheduleExpireIconCache 2014-02-06 12:59:39 +01:00
Tom Payne
b6af02a762 Add ol.ENABLE_VECTOR to control inclusion of vector layer renderers 2014-01-30 11:20:59 +01:00
Tom Payne
7e020e4d26 Add ol.ENABLE_TILE to control inclusion of tile layer renderers 2014-01-30 11:20:59 +01:00
Tom Payne
8b128ece81 Add ol.ENABLE_IMAGE to control inclusion of image layer renderers 2014-01-30 11:20:59 +01:00
Tom Payne
4667dec7c3 Rename devicePixelRatio to pixelRatio in ol.FrameState 2014-01-15 09:46:27 +01:00
Éric Lemoine
84fc86f469 Add ol.render.canvas.Immediate#drawAsync 2014-01-06 17:10:00 +01:00
Tom Payne
eb84072373 Pass pixel ratio to ol.render.canvas.Immediate constructor 2013-12-16 12:16:03 +01:00
Frederic Junod
355c0a1017 Scale output canvas by devicePixelRatio 2013-12-16 12:15:00 +01:00
Tom Payne
b59eec7a83 Merge remote-tracking branch 'openlayers/master' into vector-api 2013-12-13 20:22:06 +01:00
Tom Payne
fd733eca82 Use assertInstanceof instead of typecast 2013-12-13 18:59:25 +01:00
Tom Payne
900bc176ae Avoid clearing canvas twice 2013-11-25 08:58:18 +01:00
Tom Payne
6584ef985f Improve type checking in ol.renderer.canvas.Map 2013-11-24 14:33:47 +01:00
Frederic Junod
6762e70f4c Better canvas sizing handling (canvas and webgl) 2013-11-21 17:08:49 +01:00
Frederic Junod
a7bb02b49c Better canvas sizing handling (canvas and webgl) 2013-11-21 14:05:28 +01:00
Éric Lemoine
325534aa46 Fire precompose events from map 2013-11-20 11:45:24 +01:00
Frederic Junod
f4c5168cdf Remove renderer.Map#getCanvas function 2013-11-20 11:45:24 +01:00
Tom Payne
e44dfb1c6c Avoid clearing canvas twice 2013-11-20 11:44:42 +01:00
Tom Payne
7fd4e1ba56 Rename ol.render.RenderEvent to ol.render.Event 2013-11-20 11:42:10 +01:00