Commit Graph

1011 Commits

Author SHA1 Message Date
Tom Payne 44a28e3c16 Use ol.vec.Mat4.equals2D in ol.renderer.dom.TileLayer 2013-12-02 09:57:02 +01:00
Tom Payne e1305b4614 Use ol.vec.Mat4.equals2D in ol.renderer.dom.ImageLayer 2013-12-02 09:57:02 +01:00
Tom Payne 2ba5cf6167 Use ol.vec.Mat4.makeTransform2D in ol.renderer.webgl.TileLayer 2013-12-02 09:57:02 +01:00
Tom Payne 20bd020c13 Use ol.vec.Mat4.makeTransform2D in ol.renderer.Map 2013-12-02 09:57:01 +01:00
Tom Payne 6b96cf4ed5 Use ol.vec.Mat4.makeTransform2D in ol.renderer.dom.TileLayer 2013-12-02 09:57:01 +01:00
Tom Payne 432a8d2e19 Use ol.vec.Mat4.makeTransform2D in ol.renderer.dom.ImageLayer 2013-12-02 09:57:01 +01:00
Tom Payne bf08e6afe3 Use ol.vec.Mat4.makeTransform2D in ol.renderer.canvas.TileLayer 2013-12-02 09:57:01 +01:00
Tom Payne 5e5fc85238 Use ol.vec.Mat4.makeTransform2D in ol.renderer.canvas.Layer 2013-12-02 09:57:01 +01:00
Tom Payne 36fee8013a Use ol.vec.Mat4.makeTransform2D in ol.renderer.canvas.ImageLayer 2013-12-02 09:57:01 +01:00
Tim Schaub 1877f92d46 Add forEach method to rtree, use it in feature cache
This saves having to create feature lookup objects and iterate through lookup properties multiple times.
2013-11-27 12:22:33 -07:00
Tim Schaub 8cc4ae8dbd Separate load requests from feature requests
This separates the action of requesting an extent to be loaded from the action of requesting cached features.  The renderer (or any other consumer of a vector source) calls load to request a data extent.  A `featureload` event fires when new features are loaded.  The renderer (or any other consumer) separately asks for cached features given an extent.  This vector source only loads features once, but this separation will also work with sources that make multiple requests for data in different extents.

This also removes the `data` option from the vector source in favor of a `features` option.  Since we no longer have shared data structures for geometries, people can manually create features and pass them to a vector source.  The `addFeatures` method is exported as well.  This is used to add features to a source that don't have a representation on the "remote" (or server).
2013-11-27 12:22:32 -07:00
Tim Schaub ec02e09ce8 Move render intent enum to feature 2013-11-27 12:22:32 -07:00
Tim Schaub bfaed4d52d Moving all style functionality from source to style 2013-11-27 12:20:43 -07:00
Tim Schaub 2000b0af78 Vector layer/source refactor
This moves the feature cache from ol.layer.Vector to ol.source.Vector.  These are the minimum changes required to maintain the existing functionality and make tests pass.  More refactoring to come.
2013-11-27 12:20:42 -07: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
Tim Schaub b235fe25ea Return for getFeatureInfoForPixel
In b8a9aeb14e a return was added to `ol.renderer.Layer.prototype.getFeatureInfoForPixel`.  The `ol.renderer.canvas.VectorLayer.prototype.getFeatureInfoForPixel` method needs the same.
2013-11-25 15:29:40 -07:00
Tom Payne b0d5f96b65 Rename ol.render.canvas.Replay#draw to replay 2013-11-25 20:03:21 +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
Tom Payne 617635ed80 Improve type checking in ol.renderer.webgl.Map 2013-11-24 14:28:44 +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
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
ahocevar 912ac29f31 Merge pull request #1298 from ahocevar/gfi-callback
The source determines who can do GetFeatureInfo
2013-11-20 07:11:51 -08:00
ahocevar b8a9aeb14e Avoid source check in map renderer
By returning true or false from the layer renderer's
getFeatureInfoForPixel method, we know whether the source
supports GetFeatureInfo or not.
2013-11-20 16:05:00 +01:00
Éric Lemoine efba141bf0 Do not use default style function 2013-11-20 15:35:10 +01:00
ahocevar 0238fa54de The source determines who can do GetFeatureInfo
Now that the ol.renderer.Layer base class has a
getFeatureInfoForPixel method, we have to check whether the
source supports GetFeatureInfo, not the layer renderer.
2013-11-20 13:05:06 +01:00
Tom Payne 6fe7a980f2 Use ol.structs.PriorityQueue template in ol.renderer.webgl.Map 2013-11-20 11:45:49 +01:00
Tom Payne 479ec441ab Improve type checking in ol.renderer.canvas.VectorLayer 2013-11-20 11:45:25 +01:00
Éric Lemoine 215344af71 Set stencil to true in webgl context 2013-11-20 11:45:25 +01:00
Éric Lemoine 93aef958e9 Move arrayBuffer_ to layer renderer 2013-11-20 11:45:25 +01:00
Éric Lemoine 1c03886e1c Rename arrayBuffer_ to renderArrayBuffer_ 2013-11-20 11:45:25 +01:00
Éric Lemoine eead07b0bb Fire pre and postcompose events from webgl map 2013-11-20 11:45:25 +01:00
Éric Lemoine 8d191ca4b8 Fire pre and postcompose events from webgl layers 2013-11-20 11:45:25 +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
Frederic Junod b39496f380 Dispatch 'precompose' event for ol.renderer.canvas.VectorLayer 2013-11-20 11:45:23 +01:00
Tom Payne e1ba9c0322 Move color matrix code into ol.color.Matrix 2013-11-20 11:44:48 +01:00
Éric Lemoine 2073d78582 Fire precompose events from layers 2013-11-20 11:44:47 +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
Tom Payne ea0f8d1f8e Add frameState to postcompose event and minimise calls to getTransform 2013-11-20 11:42:06 +01:00
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