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
Frederic Junod
355c0a1017
Scale output canvas by devicePixelRatio
2013-12-16 12:15:00 +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
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
b12bed8949
Use assertInstanceof instead of getImageSource
2013-12-13 18:59:25 +01:00
Tom Payne
c9b0d0bf0e
Use assertInstanceof instead of getImageLayer
2013-12-13 18:59:25 +01:00
Tom Payne
e11d8bf717
Use assertInstanceof instead of getTileSource
2013-12-13 18:59:25 +01:00
Tom Payne
8d5e46622c
Use assertInstanceof instead of getTileLayer
2013-12-13 18:59:25 +01:00
Éric Lemoine
35d5158454
Merge remote-tracking branch 'upstream/master' into vector-api
...
Conflicts:
src/objectliterals.jsdoc
src/ol/attribution.js
src/ol/geom/geometry.js
src/ol/geom/geometrycollection.js
src/ol/geom/linestring.js
src/ol/layer/vectorlayer.exports
src/ol/layer/vectorlayer.js
src/ol/map.js
src/ol/proj/proj.js
src/ol/renderer/canvas/canvasvectorlayerrenderer.js
src/ol/source/imagewmssource.js
src/ol/source/tilewmssource.js
src/ol/source/vectorsource.exports
src/ol/source/vectorsource.js
src/ol/source/wmssource.js
src/ol/style/style.js
src/ol/tilegrid/tilegrid.js
src/ol/tilegrid/wmtstilegrid.js
src/ol/tilegrid/xyztilegrid.js
2013-12-13 12:53:57 +01:00
Éric Lemoine
93e605b119
Merge pull request #1350 from elemoine/gutter
...
Add gutter support to ol.source.TileWMS
2013-12-13 01:11:42 -08:00
Éric Lemoine
2db8ce566b
Add gutter support to ol.renderer.canvas.TileLayer
2013-12-12 10:59:32 +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
Tim Schaub
4ee9605d61
Using CONSTANT_CASE for geometry type
2013-12-05 14:00:04 -07: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
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
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
É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
É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
É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