Commit Graph

368 Commits

Author SHA1 Message Date
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 7ee2747948 Always use goog.vec.Mat4.Number instead of goog.vec.Mat.AnyType 2014-01-06 09:29:36 +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 7cadb6824e Merge remote-tracking branch 'openlayers/master' into vector-api 2013-12-18 17:09:19 +01:00
Éric Lemoine fb32a167b3 Remove ol.renderer.canvas.SUPPORTED 2013-12-18 11:44:54 +01:00
Éric Lemoine 42a2f7aab9 Add ol.BrowserFeature.HAS_CANVAS 2013-12-18 11:20:14 +01:00
Tom Payne 35be1db6a5 Merge pull request #1409 from twpayne/vector-api-polygon-quantize
[vector-api] Always quantize polygons
2013-12-18 01:10:54 -08:00
Tom Payne 76bddcf042 Pass tolerance to ol.render.canvas.ReplayGroup constructor 2013-12-17 17:46:01 +01:00
Frederic Junod c84782bfc6 Use the image pixelRatio in ol.renderer.canvas.ImageLayer 2013-12-17 13:31:11 +01:00
Frederic Junod ca0b77d0e3 Add pixelRatio to ol.source.Image#getImage 2013-12-17 13:31:11 +01:00
Tom Payne eb84072373 Pass pixel ratio to ol.render.canvas.Immediate constructor 2013-12-16 12:16:03 +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
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
Tim Schaub 5caa0eb659 Geometries inherit from ol.Observable
Because ol.Observable is now a struct, we have stricter type checking (hence the extra assertions).
2013-12-13 14:18:10 -07: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