Tim Schaub
333e4a9625
Rename getAllFeatures to getFeatures
2014-03-05 12:29:24 -07:00
Tom Payne
ccfae72e8e
Add stability annotation to ol.source.Vector
2014-02-03 14:59:14 +01:00
Tom Payne
ec81a77cdb
Convert ol.source.VectorEvent#getFeature method into feature property
2014-01-27 15:54:00 +01:00
Tom Payne
651bdcbd73
Use opt_this instead of opt_obj in ol.source.Vector
2014-01-15 15:01:58 +01:00
Tom Payne
752a2acd11
Use toString() instead of + ''
2014-01-02 22:12:34 +01:00
Tom Payne
8a7ae264e1
Handle feature's geometries changing to and from null in ol.source.Vector
2013-12-20 14:44:21 +01:00
Tom Payne
4b9451de81
Add extra assertion that feature's geometry is not null
2013-12-20 14:42:08 +01:00
Tom Payne
b2c822c9ca
Clear null geometry features in ol.source.Vector#clear
2013-12-19 14:53:22 +01:00
Tom Payne
f1fac356dd
Change ol.source.Vector#removeFeatureInternal from private to protected
2013-12-19 14:53:22 +01:00
Tom Payne
3af6521ee3
Use addFeaturesInternal in ol.source.Vector constructor
2013-12-19 14:53:21 +01:00
Tom Payne
0912c8f6ea
Add ol.source.Vector#addFeatures
2013-12-19 14:53:21 +01:00
Tom Payne
e6c66d3678
Add ol.source.Vector#addFeaturesInternal
2013-12-19 14:53:21 +01:00
Tom Payne
387fcfbdb0
Factor out ol.source.Vector#addFeatureInternal
2013-12-19 14:53:21 +01:00
Tom Payne
4510510477
Handle features with null geometries in ol.source.Vector
2013-12-16 12:47:29 +01:00
Tom Payne
975e0c0576
Add ol.source.Vector#getExtent
2013-12-16 12:47:29 +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
315c42f0a7
Use olx namespace for options types in source code
...
sed command used: find src/ol -name '*.js' -exec sed -ri 's/\{ol(\.(\w|\.)+Options\=?\})/{olx\1/' \{\} \;
2013-12-12 15:02:03 +01:00
Tom Payne
b4c6a36a4f
Fix and accelerate ol.source.Vector#getClosestFeatureToCoordinate
...
The previous implementation contained a bug (the reduced extent was
calculated around the closest point found, it should have been
calculated around the coordinate being searched for). This allows a
speed-up that requires only a single traversal of the R-Tree (as opposed
to many traversals).
2013-12-09 18:45:16 +01:00
Tom Payne
1076c5cad1
Add ol.source.Vector#getClosestFeatureToCoordinate
2013-12-09 16:40:54 +01:00
Tom Payne
79c6787e52
Add ol.source.Vector#clear
2013-12-04 14:59:30 +01:00
Tom Payne
ae3ab95b56
Factor out ol.source.Vector#removeFeatureInternal_
2013-12-04 14:59:18 +01:00
Tom Payne
66457a7aaf
Add ol.source.Vector#isEmpty
2013-12-04 14:49:25 +01:00
Tom Payne
a06ba8d4aa
Fire addfeature and removefeature events from ol.source.Vector
2013-11-28 20:53:17 +01:00
ahocevar
92a30bcbf7
Use ol.structs.RBush in ol.source.Vector
2013-11-28 16:16:52 +01:00
Tim Schaub
1f6d9fc5ae
Test for vector source load method
2013-11-27 12:22:33 -07:00
Tim Schaub
6229c0a1d4
Unused getFeaturesByIds_ method
2013-11-27 12:22:33 -07: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
bfaed4d52d
Moving all style functionality from source to style
2013-11-27 12:20:43 -07:00
Tim Schaub
307e425891
Remove unused method
2013-11-27 12:20:42 -07:00
Tim Schaub
01a0b9ff8d
Private source methods
2013-11-27 12:20:42 -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
2211aec553
Use rBush.getAll and rBush.getAllInExtent
2013-11-27 15:54:00 +01:00
Frederic Junod
aac16a3ba1
Fix doc typos
2013-11-27 13:43:11 +01:00
Frederic Junod
2f3a85a86a
Add ol.source.Vector#getAllFeatures function
2013-11-27 12:14:33 +01:00
Frederic Junod
a3b43f21e4
Add ol.source.Vector#forEachFeature function
2013-11-27 12:14:32 +01:00
Tom Payne
4de5cda4a1
Keep R-Tree up-to-date in ol.source.Vector
2013-11-26 11:57:38 +01:00
Tom Payne
8294ca9f57
Port ol.source.Vector to ol.structs.RBush
2013-11-26 11:57:37 +01:00
Tom Payne
0221fd2216
Add ol.source.Vector#getAllFeaturesAtCoordinate
2013-11-20 11:42:08 +01:00
Tom Payne
afca110b49
Add ol.source.Vector#forEachFeatureAtCoordinate
2013-11-20 11:42:07 +01:00
Tom Payne
9f2ce8f50e
Add more FIXMEs
2013-11-20 11:41:50 +01:00
Tom Payne
67cd0597bb
Add ol.source.Vector#forEachFeatureInExtent and #getAllFeaturesInExtent
2013-11-20 11:41:08 +01:00
Tom Payne
db40842487
Add ol.source.Vector
2013-11-20 11:41:07 +01:00
Tom Payne
4e65fefc00
Move vector code out of the way
2013-11-20 11:39:21 +01:00
Paul Spencer
bada596b45
Add default stability level to docs of exported things.
2013-10-24 18:20:24 -04:00
Tim Schaub
3b20cc7b53
Rename ol.Projection to ol.proj.Projection
2013-09-15 22:01:56 -06:00
Bart van den Eijnden
7b31ec26ea
fix up build
2013-08-04 15:10:08 +02:00
ahocevar
55697dea28
getProjection method on parsers
...
With this, vector sources/layers do not need to make
assumptions on the data projection.
2013-08-04 15:10:08 +02:00
ahocevar
a9fcc5ff15
Addressing @elemoine's review comments
2013-07-19 13:30:14 +02:00
ahocevar
f325046a95
Allow VectorSource to load and parse data
...
This adds url, data and parser options to the source, and makes
EPSG:4326 the default projection. It also adds a prepareFeatures
method, which is used to load/parse data once the target
projection is known.
2013-07-17 11:24:34 +02:00