Commit Graph

428 Commits

Author SHA1 Message Date
É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
Éric Lemoine
55f56aaf03 Add ol.source.Tile#getGutter 2013-12-12 10:59:31 +01:00
Éric Lemoine
e14d8add85 Add gutter support to TileUrlFunction 2013-12-12 10:59:31 +01:00
Éric Lemoine
fd438f232b Add gutter option to ol.source.TileWMS 2013-12-12 10:59:31 +01:00
Tom Payne
df975aa558 Add ol.source.GeoJSON 2013-12-11 14:14:32 +01:00
Tom Payne
28c7ecc014 Add ol.source.VectorFile 2013-12-11 14:14:32 +01:00
Tom Payne
ed5b8b6512 Merge remote-tracking branch 'openlayers/master' into vector-api 2013-12-10 12:54:27 +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
43e4292ec9 Tidy up ol.source.MapGuide and add ratio option 2013-12-06 18:11:01 +01:00
Tom Payne
0a5cc8812c Merge pull request #1236 from jumpinjackie/master
MapGuide untiled map support
2013-12-06 08:59:57 -08: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
66b08644fc Export ol.source.Vector#removeFeature function 2013-11-27 12:14:32 +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
Bart van den Eijnden
410b0793cf Merge pull request #1127 from bartvde/gfi
STYLES parameter duplicated on getFeatureInfo (r=@tschaub,@ahocevar)
2013-11-25 00:39:09 -08:00
ahocevar
9d9c91bbf7 Add missing WMSGetFeatureInfo exports 2013-11-22 17:11:44 +01:00
Éric Lemoine
d973c40141 Export getAllFeaturesAtCoordinate 2013-11-21 23:04: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
0311ecd68f Export ol.source.Vector#addFeature 2013-11-20 11:42:03 +01:00
Tom Payne
14fb455e1c Remove ol.source.GeoJSON 2013-11-20 11:41:55 +01:00
Tom Payne
12c9a4f563 Export ol.source.GeoJSON 2013-11-20 11:41:52 +01:00
Tom Payne
9f1d985b8f Export ol.source.Vector 2013-11-20 11:41:51 +01:00
Tom Payne
9f2ce8f50e Add more FIXMEs 2013-11-20 11:41:50 +01:00
Tom Payne
9bd9a1848e Use scope in ol.source.GeoJSON 2013-11-20 11:41:08 +01:00
Tom Payne
67cd0597bb Add ol.source.Vector#forEachFeatureInExtent and #getAllFeaturesInExtent 2013-11-20 11:41:08 +01:00
Tom Payne
61a217e8dd Add ol.source.GeoJSON 2013-11-20 11:41:07 +01:00
Tom Payne
db40842487 Add ol.source.Vector 2013-11-20 11:41:07 +01:00
Tom Payne
bd82e1aa1a Remove vector code from files 2013-11-20 11:41:04 +01:00
Tom Payne
4e65fefc00 Move vector code out of the way 2013-11-20 11:39:21 +01:00
Tom Payne
d91479df06 Improve type checking in ol.source.DebugTile 2013-11-20 11:13:47 +01:00
Bart van den Eijnden
bb53087541 make sure parameter name lookups are case-insensitive 2013-11-19 17:09:02 +01:00
Bart van den Eijnden
ac730dc1f3 override URL parameter values in the GetFeatureInfo request if someone provides a param in getFeatureInfoOptions with the same name 2013-11-19 14:52:29 +01:00